[vlc-devel] commit: mms: Get rid of the playlist. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Jun 14 17:54:53 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jun 14 17:56:22 2008 +0200| [2c503642b62b88f4735c27b129fe8d38c047e02c]
mms: Get rid of the playlist.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c503642b62b88f4735c27b129fe8d38c047e02c
---
modules/access/mms/mmsh.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index b67e7cf..e2a72e1 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -31,8 +31,8 @@
#include <vlc_common.h>
#include <vlc_access.h>
-#include "vlc_playlist.h"
#include "vlc_strings.h"
+#include "vlc_input.h"
#include <vlc_network.h>
#include "vlc_url.h"
@@ -183,14 +183,14 @@ int MMSHOpen( access_t *p_access )
/* Handle redirection */
if( psz_location && *psz_location )
{
- playlist_t * p_playlist = pl_Yield( p_access );
msg_Dbg( p_access, "redirection to %s", psz_location );
+ input_thread_t * p_input = vlc_object_find( p_access, VLC_OBJECT_INPUT, FIND_PARENT );
+ input_item_t * p_new_loc;
/** \bug we do not autodelete here */
- playlist_Add( p_playlist, psz_location, psz_location,
- PLAYLIST_INSERT | PLAYLIST_GO, PLAYLIST_END, true,
- false );
- vlc_object_release( p_playlist );
+ p_new_loc = input_ItemNew( p_access, psz_location, psz_location );
+ input_ItemAddSubItem( input_GetItem( p_input ), p_new_loc );
+ vlc_object_release( p_input );
free( psz_location );
More information about the vlc-devel
mailing list