Changeset 16e518077e1c20ec40052157d9685b8468f2f0a7

Show
Ignore:
Timestamp:
23/08/07 19:02:38 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1187888558 +0000
git-parent:

[2caa2480230a3cfc877b135485865b65b5482516]

git-author:
Rafaël Carré <funman@videolan.org> 1187888558 +0000
Message:

Merges ITEM_TYPE_VFILE and ITEM_TYPE_AFILE to ITEM_TYPE_FILE
There is no way at the moment to know if a file is audio only

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_input.h

    re02432e r16e5180  
    9090 
    9191#define ITEM_TYPE_UNKNOWN       0 
    92 #define ITEM_TYPE_AFILE         1 
    93 #define ITEM_TYPE_VFILE         2 
    94 #define ITEM_TYPE_DIRECTORY     3 
    95 #define ITEM_TYPE_DISC          4 
    96 #define ITEM_TYPE_CDDA          5 
    97 #define ITEM_TYPE_CARD          6 
    98 #define ITEM_TYPE_NET           7 
    99 #define ITEM_TYPE_PLAYLIST      8 
    100 #define ITEM_TYPE_NODE          9 
    101 #define ITEM_TYPE_NUMBER        10 
     92#define ITEM_TYPE_FILE          1 
     93#define ITEM_TYPE_DIRECTORY     2 
     94#define ITEM_TYPE_DISC          3 
     95#define ITEM_TYPE_CDDA          4 
     96#define ITEM_TYPE_CARD          5 
     97#define ITEM_TYPE_NET           6 
     98#define ITEM_TYPE_PLAYLIST      7 
     99#define ITEM_TYPE_NODE          8 
     100#define ITEM_TYPE_NUMBER        9 
    102101 
    103102static inline void input_ItemInit( vlc_object_t *p_o, input_item_t *p_i ) 
  • modules/access/directory.c

    re40d134 r16e5180  
    516516                p_input = input_ItemNewWithType( VLC_OBJECT(p_playlist), 
    517517                                                 psz_uri, entry, 0, NULL, 
    518                                                  -1, ITEM_TYPE_VFILE ); 
     518                                                 -1, ITEM_TYPE_FILE ); 
    519519                if (p_input != NULL) 
    520520                { 
  • modules/gui/qt4/components/infopanels.cpp

    re02432e r16e5180  
    162162    int i_type = p_input->i_type; 
    163163    vlc_mutex_unlock( &p_input->lock ); 
    164     if( ( i_type == ITEM_TYPE_AFILE ) || ( i_type == ITEM_TYPE_VFILE )
     164    if( i_type == ITEM_TYPE_FILE
    165165    { 
    166166        char *psz_uri_orig = input_item_GetURI( p_input ); 
  • modules/gui/qt4/playlist_model.cpp

    re02432e r16e5180  
    3434 
    3535#include "pixmaps/type_unknown.xpm" 
    36 #include "pixmaps/type_afile.xpm" 
    37 #include "pixmaps/type_vfile.xpm" 
     36#include "pixmaps/type_file.xpm" 
    3837#include "pixmaps/type_net.xpm" 
    3938#include "pixmaps/type_card.xpm" 
     
    277276#define ADD_ICON(type, x) icons[ITEM_TYPE_##type] = QIcon( QPixmap( type_##x##_xpm ) ); 
    278277    ADD_ICON( UNKNOWN , unknown ); 
    279     ADD_ICON( AFILE,afile ); 
    280     ADD_ICON( VFILE, vfile ); 
     278    ADD_ICON( FILE, file ); 
    281279    ADD_ICON( DIRECTORY, directory ); 
    282280    ADD_ICON( DISC, disc ); 
  • src/input/item.c

    rb432f14 r16e5180  
    246246    if( psz_name != NULL ) 
    247247        p_input->psz_name = strdup( psz_name ); 
    248     else if( p_input->i_type == ITEM_TYPE_AFILE 
    249              || p_input->i_type == ITEM_TYPE_VFILE ) 
     248    else if( p_input->i_type == ITEM_TYPE_FILE ) 
    250249    { 
    251250        const char *psz_filename = strrchr( p_input->psz_uri, DIR_SEP_CHAR ); 
     
    298297    }; 
    299298 
    300 #if 0 /* Unused */ 
    301     static struct { char *psz_search; int i_type; } exts_array[] = 
    302     { 
    303         { "mp3", ITEM_TYPE_AFILE }, 
    304         { NULL, 0 } 
    305     }; 
    306 #endif 
    307  
    308299    for( i = 0; types_array[i].psz_search != NULL; i++ ) 
    309300    { 
     
    315306        } 
    316307    } 
    317     p_item->i_type = ITEM_TYPE_VFILE; 
    318 } 
     308    p_item->i_type = ITEM_TYPE_FILE; 
     309}