Changeset 555437f5819af1d783c9d05156da643672032184
- 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
| r3561b9b |
r555437f |
|
| 39 | 39 | struct demux_sys_t |
|---|
| 40 | 40 | { |
|---|
| 41 | | playlist_t *p_playlist; |
|---|
| 42 | 41 | input_item_t *p_current_input; |
|---|
| 43 | 42 | |
|---|
| … | … | |
| 73 | 72 | |
|---|
| 74 | 73 | STANDARD_DEMUX_INIT_MSG( "using shoutcast playlist reader" ); |
|---|
| 75 | | p_demux->p_sys->p_playlist = NULL; |
|---|
| 76 | 74 | p_demux->p_sys->p_xml = NULL; |
|---|
| 77 | 75 | p_demux->p_sys->p_xml_reader = NULL; |
|---|
| … | … | |
| 93 | 91 | demux_sys_t *p_sys = p_demux->p_sys; |
|---|
| 94 | 92 | |
|---|
| 95 | | if( p_sys->p_playlist ) |
|---|
| 96 | | vlc_object_release( p_sys->p_playlist ); |
|---|
| 97 | 93 | if( p_sys->p_xml_reader ) |
|---|
| 98 | 94 | xml_ReaderDelete( p_sys->p_xml, p_sys->p_xml_reader ); |
|---|
| … | … | |
| 109 | 105 | char *psz_eltname = NULL; |
|---|
| 110 | 106 | INIT_PLAYLIST_STUFF; |
|---|
| 111 | | p_sys->p_playlist = p_playlist; |
|---|
| 112 | 107 | p_sys->p_current_input = p_current_input; |
|---|
| 113 | 108 | |
|---|
| … | … | |
| 151 | 146 | |
|---|
| 152 | 147 | HANDLE_PLAY_AND_RELEASE; |
|---|
| 153 | | p_sys->p_playlist = NULL; |
|---|
| 154 | 148 | return 0; /* Needed for correct operation of go back */ |
|---|
| 155 | 149 | } |
|---|
| … | … | |
| 235 | 229 | sprintf( psz_mrl, SHOUTCAST_BASE_URL "?genre=%s", |
|---|
| 236 | 230 | psz_name ); |
|---|
| 237 | | p_input = input_ItemNewExt( p_sys->p_playlist, psz_mrl, |
|---|
| | 231 | p_input = input_ItemNewExt( p_demux, psz_mrl, |
|---|
| 238 | 232 | psz_name, 0, NULL, -1 ); |
|---|
| 239 | 233 | input_ItemCopyOptions( p_sys->p_current_input, |
|---|
| … | … | |
| 409 | 403 | psz_base, psz_id ); |
|---|
| 410 | 404 | } |
|---|
| 411 | | p_input = input_ItemNewExt( p_sys->p_playlist, psz_mrl, |
|---|
| | 405 | p_input = input_ItemNewExt( p_demux, psz_mrl, |
|---|
| 412 | 406 | psz_name , 0, NULL, -1 ); |
|---|
| 413 | 407 | free( psz_mrl ); |
|---|