Changeset 359761887328403392fa85d36ef418aafc3eb00a
- 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
| r3561b9b |
r3597618 |
|
| 34 | 34 | #include <vlc_demux.h> |
|---|
| 35 | 35 | |
|---|
| | 36 | #include <vlc_xml.h> |
|---|
| | 37 | #include <vlc_strings.h> |
|---|
| | 38 | #include <vlc_url.h> |
|---|
| | 39 | #include "xspf.h" |
|---|
| 36 | 40 | #include "playlist.h" |
|---|
| 37 | | #include "vlc_xml.h" |
|---|
| 38 | | #include "vlc_strings.h" |
|---|
| 39 | | #include "vlc_url.h" |
|---|
| 40 | | #include "xspf.h" |
|---|
| 41 | 41 | |
|---|
| 42 | 42 | struct demux_sys_t |
|---|
| 43 | 43 | { |
|---|
| 44 | | playlist_item_t *p_item_in_category; |
|---|
| 45 | 44 | input_item_t **pp_tracklist; |
|---|
| 46 | 45 | int i_tracklist_entries; |
|---|
| … | … | |
| 122 | 121 | |
|---|
| 123 | 122 | 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, |
|---|
| 125 | 124 | p_xml_reader, "playlist" ) ? 0 : -1; |
|---|
| 126 | 125 | |
|---|
| … | … | |
| 153 | 152 | * \brief parse the root node of a XSPF playlist |
|---|
| 154 | 153 | * \param p_demux demuxer instance |
|---|
| 155 | | * \param p_playlist playlist instance |
|---|
| 156 | 154 | * \param p_input_item current input item |
|---|
| 157 | 155 | * \param p_xml_reader xml reader instance |
|---|
| … | … | |
| 251 | 249 | { |
|---|
| 252 | 250 | if( p_handler->pf_handler.cmplx( p_demux, |
|---|
| 253 | | p_playlist, |
|---|
| 254 | 251 | p_input_item, |
|---|
| 255 | 252 | p_xml_reader, |
|---|
| … | … | |
| 357 | 354 | |
|---|
| 358 | 355 | /* 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, |
|---|
| 360 | 357 | p_xml_reader,"track" ) == true ) |
|---|
| 361 | 358 | i_ntracks++; |
|---|
| … | … | |
| 455 | 452 | } |
|---|
| 456 | 453 | if( p_handler->pf_handler.cmplx( p_demux, |
|---|
| 457 | | p_playlist, |
|---|
| 458 | 454 | p_new_input, |
|---|
| 459 | 455 | p_xml_reader, |
|---|
| … | … | |
| 559 | 555 | psz_uri = psz_tmp; |
|---|
| 560 | 556 | } |
|---|
| 561 | | p_new_input = input_ItemNewExt( p_playlist, psz_uri, |
|---|
| | 557 | p_new_input = input_ItemNewExt( p_demux, psz_uri, |
|---|
| 562 | 558 | NULL, 0, NULL, -1 ); |
|---|
| 563 | 559 | free( psz_uri ); |
|---|
| … | … | |
| 735 | 731 | return false; |
|---|
| 736 | 732 | } |
|---|
| 737 | | p_new_input = input_ItemNewWithType( VLC_OBJECT( p_playlist ), "vlc://nop", |
|---|
| | 733 | p_new_input = input_ItemNewWithType( VLC_OBJECT( p_demux ), "vlc://nop", |
|---|
| 738 | 734 | psz_title, 0, NULL, -1, ITEM_TYPE_DIRECTORY ); |
|---|
| 739 | 735 | if( p_new_input ) |
|---|
| … | … | |
| 793 | 789 | { |
|---|
| 794 | 790 | if( p_handler->pf_handler.cmplx( p_demux, |
|---|
| 795 | | p_playlist, |
|---|
| 796 | 791 | p_input_item, |
|---|
| 797 | 792 | p_xml_reader, |
|---|
| … | … | |
| 871 | 866 | static bool parse_extitem_node COMPLEX_INTERFACE |
|---|
| 872 | 867 | { |
|---|
| 873 | | VLC_UNUSED(p_playlist); VLC_UNUSED(psz_element); |
|---|
| | 868 | VLC_UNUSED(psz_element); |
|---|
| 874 | 869 | input_item_t *p_new_input = NULL; |
|---|
| 875 | 870 | char *psz_name = NULL; |
|---|
| … | … | |
| 933 | 928 | static bool skip_element COMPLEX_INTERFACE |
|---|
| 934 | 929 | { |
|---|
| 935 | | VLC_UNUSED(p_demux); VLC_UNUSED(p_playlist); VLC_UNUSED(p_input_item); |
|---|
| | 930 | VLC_UNUSED(p_demux); VLC_UNUSED(p_input_item); |
|---|
| 936 | 931 | char *psz_endname; |
|---|
| 937 | 932 | |
|---|
| r0db5f2a |
r3597618 |
|
| 36 | 36 | char *psz_value) |
|---|
| 37 | 37 | #define COMPLEX_INTERFACE (demux_t *p_demux,\ |
|---|
| 38 | | playlist_t *p_playlist,\ |
|---|
| 39 | 38 | input_item_t *p_input_item,\ |
|---|
| 40 | 39 | xml_reader_t *p_xml_reader,\ |
|---|