Changeset 359761887328403392fa85d36ef418aafc3eb00a

Show
Ignore:
Timestamp:
14/06/08 16:59:47 (6 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213455587 +0200
git-parent:

[89d24455d9c05be06de9ba8979806e0eb7647570]

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

xspf: Remove references to the playlist.

Files:

Legend:

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

    r3561b9b r3597618  
    3434#include <vlc_demux.h> 
    3535 
     36#include <vlc_xml.h> 
     37#include <vlc_strings.h> 
     38#include <vlc_url.h> 
     39#include "xspf.h" 
    3640#include "playlist.h" 
    37 #include "vlc_xml.h" 
    38 #include "vlc_strings.h" 
    39 #include "vlc_url.h" 
    40 #include "xspf.h" 
    4141 
    4242struct demux_sys_t 
    4343{ 
    44     playlist_item_t *p_item_in_category; 
    4544    input_item_t **pp_tracklist; 
    4645    int i_tracklist_entries; 
     
    122121 
    123122    if( i_ret == 1 ) 
    124         i_ret = parse_playlist_node( p_demux, p_playlist, p_current_input, 
     123        i_ret = parse_playlist_node( p_demux, p_current_input, 
    125124                                     p_xml_reader, "playlist" ) ? 0 : -1; 
    126125 
     
    153152 * \brief parse the root node of a XSPF playlist 
    154153 * \param p_demux demuxer instance 
    155  * \param p_playlist playlist instance 
    156154 * \param p_input_item current input item 
    157155 * \param p_xml_reader xml reader instance 
     
    251249                { 
    252250                    if( p_handler->pf_handler.cmplx( p_demux, 
    253                                                      p_playlist, 
    254251                                                     p_input_item, 
    255252                                                     p_xml_reader, 
     
    357354 
    358355            /* parse the track data in a separate function */ 
    359             if( parse_track_node( p_demux, p_playlist, p_input_item, 
     356            if( parse_track_node( p_demux, p_input_item, 
    360357                                   p_xml_reader,"track" ) == true ) 
    361358                i_ntracks++; 
     
    455452                    } 
    456453                    if( p_handler->pf_handler.cmplx( p_demux, 
    457                                                      p_playlist, 
    458454                                                     p_new_input, 
    459455                                                     p_xml_reader, 
     
    559555                           psz_uri = psz_tmp; 
    560556                        } 
    561                         p_new_input = input_ItemNewExt( p_playlist, psz_uri, 
     557                        p_new_input = input_ItemNewExt( p_demux, psz_uri, 
    562558                                                        NULL, 0, NULL, -1 ); 
    563559                        free( psz_uri ); 
     
    735731            return false; 
    736732        } 
    737         p_new_input = input_ItemNewWithType( VLC_OBJECT( p_playlist ), "vlc://nop", 
     733        p_new_input = input_ItemNewWithType( VLC_OBJECT( p_demux ), "vlc://nop", 
    738734                                psz_title, 0, NULL, -1, ITEM_TYPE_DIRECTORY ); 
    739735        if( p_new_input ) 
     
    793789                { 
    794790                    if( p_handler->pf_handler.cmplx( p_demux, 
    795                                                      p_playlist, 
    796791                                                     p_input_item, 
    797792                                                     p_xml_reader, 
     
    871866static bool parse_extitem_node COMPLEX_INTERFACE 
    872867{ 
    873     VLC_UNUSED(p_playlist); VLC_UNUSED(psz_element); 
     868    VLC_UNUSED(psz_element); 
    874869    input_item_t *p_new_input = NULL; 
    875870    char *psz_name = NULL; 
     
    933928static bool skip_element COMPLEX_INTERFACE 
    934929{ 
    935     VLC_UNUSED(p_demux); VLC_UNUSED(p_playlist); VLC_UNUSED(p_input_item); 
     930    VLC_UNUSED(p_demux); VLC_UNUSED(p_input_item); 
    936931    char *psz_endname; 
    937932 
  • modules/demux/playlist/xspf.h

    r0db5f2a r3597618  
    3636                           char            *psz_value) 
    3737#define COMPLEX_INTERFACE (demux_t         *p_demux,\ 
    38                            playlist_t      *p_playlist,\ 
    3938                           input_item_t    *p_input_item,\ 
    4039                           xml_reader_t    *p_xml_reader,\