Changeset 2c503642b62b88f4735c27b129fe8d38c047e02c
- Timestamp:
- 14/06/08 17:56:22
(5 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213458982 +0200
- git-parent:
[5faadbd6cd9bcb3c72c38ad51b48bc117a60c094]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213458982 +0200
- Message:
mms: Get rid of the playlist.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3561b9b |
r2c50364 |
|
| 32 | 32 | #include <vlc_common.h> |
|---|
| 33 | 33 | #include <vlc_access.h> |
|---|
| 34 | | #include "vlc_playlist.h" |
|---|
| 35 | 34 | #include "vlc_strings.h" |
|---|
| | 35 | #include "vlc_input.h" |
|---|
| 36 | 36 | |
|---|
| 37 | 37 | #include <vlc_network.h> |
|---|
| … | … | |
| 184 | 184 | if( psz_location && *psz_location ) |
|---|
| 185 | 185 | { |
|---|
| 186 | | playlist_t * p_playlist = pl_Yield( p_access ); |
|---|
| 187 | 186 | msg_Dbg( p_access, "redirection to %s", psz_location ); |
|---|
| 188 | 187 | |
|---|
| | 188 | input_thread_t * p_input = vlc_object_find( p_access, VLC_OBJECT_INPUT, FIND_PARENT ); |
|---|
| | 189 | input_item_t * p_new_loc; |
|---|
| 189 | 190 | /** \bug we do not autodelete here */ |
|---|
| 190 | | playlist_Add( p_playlist, psz_location, psz_location, |
|---|
| 191 | | PLAYLIST_INSERT | PLAYLIST_GO, PLAYLIST_END, true, |
|---|
| 192 | | false ); |
|---|
| 193 | | vlc_object_release( p_playlist ); |
|---|
| | 191 | p_new_loc = input_ItemNew( p_access, psz_location, psz_location ); |
|---|
| | 192 | input_ItemAddSubItem( input_GetItem( p_input ), p_new_loc ); |
|---|
| | 193 | vlc_object_release( p_input ); |
|---|
| 194 | 194 | |
|---|
| 195 | 195 | free( psz_location ); |
|---|