Changeset 8589b24945ea0e4f049ab0d32de0fab8a480e9bd
- Timestamp:
- 06/14/08 17:12:13
(3 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213456333 +0200
- git-parent:
[9e93e03708144022e1d47f138ba1917fd4eb41b5]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213456333 +0200
- Message:
demux/playlist: Don't use playlist_t code.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3561b9b |
r8589b24 |
|
| 32 | 32 | #include <vlc_plugin.h> |
|---|
| 33 | 33 | #include <vlc_demux.h> |
|---|
| 34 | | #include <vlc_playlist.h> |
|---|
| 35 | 34 | |
|---|
| 36 | 35 | #include "playlist.h" |
|---|
| r3561b9b |
r8589b24 |
|
| 160 | 160 | if( psz_mrl ) |
|---|
| 161 | 161 | { |
|---|
| 162 | | p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name, |
|---|
| | 162 | p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name, |
|---|
| 163 | 163 | 0, NULL, -1 ); |
|---|
| 164 | 164 | input_ItemCopyOptions( p_current_input, p_input ); |
|---|
| … | … | |
| 216 | 216 | if( psz_mrl ) |
|---|
| 217 | 217 | { |
|---|
| 218 | | p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name,0, NULL, -1 ); |
|---|
| | 218 | p_input = input_ItemNewExt( p_demux, psz_mrl, psz_name,0, NULL, -1 ); |
|---|
| 219 | 219 | input_ItemCopyOptions( p_current_input, p_input ); |
|---|
| 220 | 220 | input_ItemAddSubItem( p_current_input, p_input ); |
|---|
| r3561b9b |
r8589b24 |
|
| 38 | 38 | { |
|---|
| 39 | 39 | char *psz_prefix; |
|---|
| 40 | | playlist_t *p_playlist; |
|---|
| 41 | 40 | xml_t *p_xml; |
|---|
| 42 | 41 | xml_reader_t *p_xml_reader; |
|---|
| … | … | |
| 61 | 60 | STANDARD_DEMUX_INIT_MSG( "using podcast reader" ); |
|---|
| 62 | 61 | p_demux->p_sys->psz_prefix = FindPrefix( p_demux ); |
|---|
| 63 | | p_demux->p_sys->p_playlist = NULL; |
|---|
| 64 | 62 | p_demux->p_sys->p_xml = NULL; |
|---|
| 65 | 63 | p_demux->p_sys->p_xml_reader = NULL; |
|---|
| … | … | |
| 77 | 75 | |
|---|
| 78 | 76 | free( p_sys->psz_prefix ); |
|---|
| 79 | | if( p_sys->p_playlist ) vlc_object_release( p_sys->p_playlist ); |
|---|
| 80 | 77 | if( p_sys->p_xml_reader ) xml_ReaderDelete( p_sys->p_xml, p_sys->p_xml_reader ); |
|---|
| 81 | 78 | if( p_sys->p_xml ) xml_Delete( p_sys->p_xml ); |
|---|
| … | … | |
| 276 | 273 | return -1; |
|---|
| 277 | 274 | } |
|---|
| 278 | | p_input = input_ItemNewExt( p_playlist, psz_item_mrl, |
|---|
| | 275 | p_input = input_ItemNewExt( p_demux, psz_item_mrl, |
|---|
| 279 | 276 | psz_item_name, 0, NULL, -1 ); |
|---|
| 280 | 277 | if( p_input == NULL ) break; |
|---|
| r3561b9b |
r8589b24 |
|
| 61 | 61 | struct demux_sys_t |
|---|
| 62 | 62 | { |
|---|
| 63 | | playlist_t *p_playlist; |
|---|
| 64 | 63 | input_item_t *p_current_input; |
|---|
| 65 | 64 | |
|---|
| … | … | |
| 91 | 90 | { |
|---|
| 92 | 91 | DEMUX_BY_EXTENSION_MSG( ".qtl", "using QuickTime Media Link reader" ); |
|---|
| 93 | | p_demux->p_sys->p_playlist = NULL; |
|---|
| 94 | 92 | p_demux->p_sys->p_xml = NULL; |
|---|
| 95 | 93 | p_demux->p_sys->p_xml_reader = NULL; |
|---|
| … | … | |
| 105 | 103 | demux_sys_t *p_sys = p_demux->p_sys; |
|---|
| 106 | 104 | |
|---|
| 107 | | if( p_sys->p_playlist ) |
|---|
| 108 | | vlc_object_release( p_sys->p_playlist ); |
|---|
| 109 | 105 | if( p_sys->p_xml_reader ) |
|---|
| 110 | 106 | xml_ReaderDelete( p_sys->p_xml, p_sys->p_xml_reader ); |
|---|
| … | … | |
| 140 | 136 | INIT_PLAYLIST_STUFF; |
|---|
| 141 | 137 | |
|---|
| 142 | | p_sys->p_playlist = p_playlist; |
|---|
| 143 | 138 | p_sys->p_current_input = p_current_input; |
|---|
| 144 | 139 | |
|---|
| … | … | |
| 355 | 350 | else |
|---|
| 356 | 351 | { |
|---|
| 357 | | p_input = input_ItemNewExt( p_sys->p_playlist, |
|---|
| | 352 | p_input = input_ItemNewExt( p_demux, |
|---|
| 358 | 353 | psz_src, psz_moviename, 0, NULL, -1 ); |
|---|
| 359 | 354 | #define SADD_INFO( type, field ) if( field ) { input_ItemAddInfo( \ |
|---|
| … | … | |
| 365 | 360 | if( psz_qtnext ) |
|---|
| 366 | 361 | { |
|---|
| 367 | | p_input = input_ItemNewExt( p_sys->p_playlist, |
|---|
| | 362 | p_input = input_ItemNewExt( p_demux, |
|---|
| 368 | 363 | psz_qtnext, NULL, 0, NULL, -1 ); |
|---|
| 369 | 364 | input_ItemAddSubItem( p_current_input, p_input ); |
|---|
| … | … | |
| 373 | 368 | |
|---|
| 374 | 369 | HANDLE_PLAY_AND_RELEASE; |
|---|
| 375 | | |
|---|
| 376 | | p_sys->p_playlist = NULL; |
|---|
| 377 | 370 | |
|---|
| 378 | 371 | free( psz_href ); |
|---|