Changeset 2c503642b62b88f4735c27b129fe8d38c047e02c

Show
Ignore:
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
  • modules/access/mms/mmsh.c

    r3561b9b r2c50364  
    3232#include <vlc_common.h> 
    3333#include <vlc_access.h> 
    34 #include "vlc_playlist.h" 
    3534#include "vlc_strings.h" 
     35#include "vlc_input.h" 
    3636 
    3737#include <vlc_network.h> 
     
    184184    if( psz_location && *psz_location ) 
    185185    { 
    186         playlist_t * p_playlist = pl_Yield( p_access ); 
    187186        msg_Dbg( p_access, "redirection to %s", psz_location ); 
    188187 
     188        input_thread_t * p_input = vlc_object_find( p_access, VLC_OBJECT_INPUT, FIND_PARENT ); 
     189        input_item_t * p_new_loc; 
    189190        /** \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 ); 
    194194 
    195195        free( psz_location );