Changeset a0e351f5a791d05b4e38bf835064055d10730efc

Show
Ignore:
Timestamp:
06/14/08 17:36:03 (2 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213457763 +0200
git-parent:

[fcaf3746c77c7aaa692e39b3c377321f2155bda1]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213457763 +0200
Message:

demux/playlist: Don't use playlist_t.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/playlist/asx.c

    r3561b9b ra0e351f  
    460460                            memcpy( psz_string, psz_backup, i_strlen ); 
    461461                            psz_string[i_strlen] = '\0'; 
    462                             p_input = input_ItemNew( p_playlist, psz_string, psz_title_asx ); 
     462                            p_input = input_ItemNew( p_demux, psz_string, psz_title_asx ); 
    463463                            input_ItemCopyOptions( p_current_input, p_input ); 
    464464                            input_ItemAddSubItem( p_current_input, p_input ); 
     
    517517                    asprintf( &psz_name, "%d %s", i_entry_count, ( psz_title_entry ? psz_title_entry : p_current_input->psz_name ) ); 
    518518 
    519                     p_entry = input_ItemNewExt( p_playlist, psz_href, psz_name, i_options, (const char * const *)ppsz_options, -1 ); 
     519                    p_entry = input_ItemNewExt( p_demux, psz_href, psz_name, i_options, (const char * const *)ppsz_options, -1 ); 
    520520                    FREENULL( psz_name ); 
    521521                    input_ItemCopyOptions( p_current_input, p_entry ); 
  • modules/demux/playlist/b4s.c

    r3561b9b ra0e351f  
    110110    { 
    111111        msg_Err( p_demux, "invalid file (no root node)" ); 
    112         vlc_object_release( p_playlist ); 
    113112        return -1; 
    114113    } 
     
    121120                 xml_ReaderNodeType( p_xml_reader ), psz_elname ); 
    122121        free( psz_elname ); 
    123         vlc_object_release( p_playlist ); 
    124122        return -1; 
    125123    } 
     
    259257                if( !strcmp( psz_elname, "entry" ) ) 
    260258                { 
    261                     p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name, 
     259                    p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name, 
    262260                                                0, NULL, -1 ); 
    263261                    if( psz_now ) 
     
    266264                        input_item_SetGenre( p_input, psz_genre ); 
    267265                    if( psz_listeners ) 
    268                         msg_Err( p_playlist, "Unsupported meta listeners" ); 
     266                        msg_Err( p_demux, "Unsupported meta listeners" ); 
    269267                    if( psz_bitrate ) 
    270                         msg_Err( p_playlist, "Unsupported meta bitrate" ); 
     268                        msg_Err( p_demux, "Unsupported meta bitrate" ); 
    271269 
    272270                    input_ItemAddSubItem( p_current_input, p_input ); 
  • modules/demux/playlist/dvb.c

    r3561b9b ra0e351f  
    118118        EnsureUTF8( psz_name ); 
    119119 
    120         p_input = input_ItemNewExt( p_playlist, "dvb://", psz_name, 0, NULL, -1 ); 
     120        p_input = input_ItemNewExt( p_demux, "dvb://", psz_name, 0, NULL, -1 ); 
    121121        for( i = 0; i< i_options; i++ ) 
    122122        { 
  • modules/demux/playlist/gvp.c

    r3561b9b ra0e351f  
    6262struct demux_sys_t 
    6363{ 
    64     playlist_t *p_playlist; 
    6564    input_item_t *p_current_input; 
    6665}; 
     
    9998    p_demux->pf_demux = Demux; 
    10099    MALLOC_ERR( p_demux->p_sys, demux_sys_t ); 
    101     p_demux->p_sys->p_playlist = NULL; 
    102100 
    103101    return VLC_SUCCESS; 
     
    112110    demux_sys_t *p_sys = p_demux->p_sys; 
    113111 
    114     if( p_sys->p_playlist ) 
    115         vlc_object_release( p_sys->p_playlist ); 
    116112    free( p_sys ); 
    117113} 
     
    134130    INIT_PLAYLIST_STUFF; 
    135131 
    136     p_sys->p_playlist = p_playlist; 
    137132    p_sys->p_current_input = p_current_input; 
    138133 
     
    207202    else 
    208203    { 
    209         p_input = input_ItemNewExt( p_sys->p_playlist
     204        p_input = input_ItemNewExt( p_demux
    210205                                    psz_url, psz_title, 0, NULL, -1 ); 
    211206#define SADD_INFO( type, field ) if( field ) { input_ItemAddInfo( \ 
     
    226221    free( psz_description ); 
    227222 
    228     p_sys->p_playlist = NULL; 
    229  
    230223    return 0; /* Needed for correct operation of go back */ 
    231224} 
  • modules/demux/playlist/ifo.c

    r3561b9b ra0e351f  
    9696    snprintf( psz_url, len+1, "dvd://%s", p_demux->psz_path ); 
    9797 
    98     p_input = input_ItemNewExt( p_playlist, psz_url, psz_url, 0, NULL, -1 ); 
     98    p_input = input_ItemNewExt( p_demux, psz_url, psz_url, 0, NULL, -1 ); 
    9999    input_ItemAddSubItem( p_current_input, p_input ); 
    100100    vlc_gc_decref( p_input ); 
  • modules/demux/playlist/itml.c

    r3561b9b ra0e351f  
    115115        xml_elem_hnd_t pl_elements[] = 
    116116            { {"dict",    COMPLEX_CONTENT, {.cmplx = parse_plist_dict} } }; 
    117         i_ret = parse_plist_node( p_demux, p_playlist, p_current_input, 
     117        i_ret = parse_plist_node( p_demux, p_current_input, 
    118118                                     NULL, p_xml_reader, "plist", 
    119119                                     pl_elements ); 
     
    173173        msg_Warn( p_demux, "<plist> requires \"version\" attribute" ); 
    174174 
    175     return parse_dict( p_demux, p_playlist, p_input_item, NULL, p_xml_reader, 
     175    return parse_dict( p_demux, p_input_item, NULL, p_xml_reader, 
    176176                       "plist", p_handlers ); 
    177177} 
     
    221221                { 
    222222                    if( p_handler->pf_handler.cmplx( p_demux, 
    223                                                      p_playlist, 
    224223                                                     p_input_item, 
    225224                                                     NULL, 
     
    317316        }; 
    318317 
    319     return parse_dict( p_demux, p_playlist, p_input_item, NULL, p_xml_reader, 
     318    return parse_dict( p_demux, p_input_item, NULL, p_xml_reader, 
    320319                       "dict", pl_elements ); 
    321320} 
     
    330329        }; 
    331330 
    332     parse_dict( p_demux, p_playlist, p_input_item, NULL, p_xml_reader, 
     331    parse_dict( p_demux, p_input_item, NULL, p_xml_reader, 
    333332                "dict", tracks_elements ); 
    334333 
     
    358357        }; 
    359358 
    360     i_ret = parse_dict( p_demux, p_playlist, p_input_item, p_track, 
     359    i_ret = parse_dict( p_demux, p_input_item, p_track, 
    361360                        p_xml_reader, "dict", track_elements ); 
    362361 
     
    382381            msg_Info( p_demux, "Adding '%s'", psz_uri ); 
    383382 
    384             p_new_input = input_ItemNewExt( p_playlist, psz_uri, 
     383            p_new_input = input_ItemNewExt( p_demux, psz_uri, 
    385384                                            NULL, 0, NULL, -1 ); 
    386385            input_ItemAddSubItem( p_input_item, p_new_input ); 
     
    489488static bool skip_element COMPLEX_INTERFACE 
    490489{ 
    491     VLC_UNUSED(p_demux); VLC_UNUSED(p_playlist); VLC_UNUSED(p_input_item); 
     490    VLC_UNUSED(p_demux); VLC_UNUSED(p_input_item); 
    492491    VLC_UNUSED(p_track); VLC_UNUSED(p_handlers); 
    493492    char *psz_endname; 
  • modules/demux/playlist/itml.h

    r449fd28 ra0e351f  
    4242                           char            *psz_value) 
    4343#define COMPLEX_INTERFACE (demux_t         *p_demux,\ 
    44                            playlist_t      *p_playlist,\ 
    4544                           input_item_t    *p_input_item,\ 
    4645                           track_elem_t    *p_track,\ 
  • modules/demux/playlist/m3u.c

    r3561b9b ra0e351f  
    183183            if( !psz_mrl ) goto error; 
    184184 
    185             p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name, 
     185            p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name, 
    186186                                        0, NULL, i_duration ); 
    187187 
  • modules/demux/playlist/playlist.h

    r6300760 ra0e351f  
    2222 *****************************************************************************/ 
    2323 
    24 #include <vlc_playlist.h> 
     24#include <vlc_input.h> 
     25 
    2526char *ProcessMRL( char *, char * ); 
    2627char *FindPrefix( demux_t * ); 
     
    7879 
    7980#define INIT_PLAYLIST_STUFF \ 
    80     playlist_t *p_playlist = pl_Yield( p_demux ); \ 
    8181    input_thread_t *p_input_thread = (input_thread_t *)vlc_object_find( p_demux, VLC_OBJECT_INPUT, FIND_PARENT ); \ 
    8282    input_item_t *p_current_input = input_GetItem( p_input_thread ); 
    8383 
    8484#define HANDLE_PLAY_AND_RELEASE \ 
    85     vlc_object_release( p_input_thread ); \ 
    86     vlc_object_release( p_playlist ); 
    87  
     85    vlc_object_release( p_input_thread );