Changeset 555437f5819af1d783c9d05156da643672032184

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

[33c10298dba22b426c26aadf4e643a7f2765ca6d]

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

shoutcast: Don't use playlist code.

Files:

Legend:

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

    r3561b9b r555437f  
    3939struct demux_sys_t 
    4040{ 
    41     playlist_t *p_playlist; 
    4241    input_item_t *p_current_input; 
    4342 
     
    7372 
    7473    STANDARD_DEMUX_INIT_MSG( "using shoutcast playlist reader" ); 
    75     p_demux->p_sys->p_playlist = NULL; 
    7674    p_demux->p_sys->p_xml = NULL; 
    7775    p_demux->p_sys->p_xml_reader = NULL; 
     
    9391    demux_sys_t *p_sys = p_demux->p_sys; 
    9492 
    95     if( p_sys->p_playlist ) 
    96         vlc_object_release( p_sys->p_playlist ); 
    9793    if( p_sys->p_xml_reader ) 
    9894        xml_ReaderDelete( p_sys->p_xml, p_sys->p_xml_reader ); 
     
    109105    char *psz_eltname = NULL; 
    110106    INIT_PLAYLIST_STUFF; 
    111     p_sys->p_playlist = p_playlist; 
    112107    p_sys->p_current_input = p_current_input; 
    113108 
     
    151146 
    152147    HANDLE_PLAY_AND_RELEASE; 
    153     p_sys->p_playlist = NULL; 
    154148    return 0; /* Needed for correct operation of go back */ 
    155149} 
     
    235229                    sprintf( psz_mrl, SHOUTCAST_BASE_URL "?genre=%s", 
    236230                             psz_name ); 
    237                     p_input = input_ItemNewExt( p_sys->p_playlist, psz_mrl, 
     231                    p_input = input_ItemNewExt( p_demux, psz_mrl, 
    238232                                                psz_name, 0, NULL, -1 ); 
    239233                    input_ItemCopyOptions( p_sys->p_current_input, 
     
    409403                             psz_base, psz_id ); 
    410404                    } 
    411                     p_input = input_ItemNewExt( p_sys->p_playlist, psz_mrl, 
     405                    p_input = input_ItemNewExt( p_demux, psz_mrl, 
    412406                                                psz_name , 0, NULL, -1 ); 
    413407                    free( psz_mrl );