Commit 82447676 authored by zorglub's avatar zorglub
Browse files

Playlist can be ANYWHERE

parent 21e5f396
...@@ -133,7 +133,7 @@ static int Demux( demux_t *p_demux ) ...@@ -133,7 +133,7 @@ static int Demux( demux_t *p_demux )
b_shoutcast = p_sys->b_shout; b_shoutcast = p_sys->b_shout;
p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST, p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST,
FIND_PARENT ); FIND_ANYWHERE );
if( !p_playlist ) if( !p_playlist )
{ {
msg_Err( p_demux, "can't find playlist" ); msg_Err( p_demux, "can't find playlist" );
......
...@@ -105,7 +105,7 @@ static int Demux( demux_t *p_demux ) ...@@ -105,7 +105,7 @@ static int Demux( demux_t *p_demux )
vlc_bool_t b_play; vlc_bool_t b_play;
p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST, p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST,
FIND_PARENT ); FIND_ANYWHERE );
if( !p_playlist ) if( !p_playlist )
{ {
msg_Err( p_demux, "can't find playlist" ); msg_Err( p_demux, "can't find playlist" );
......
...@@ -123,7 +123,7 @@ static int Demux( demux_t *p_demux ) ...@@ -123,7 +123,7 @@ static int Demux( demux_t *p_demux )
vlc_bool_t b_cleanup = VLC_FALSE; vlc_bool_t b_cleanup = VLC_FALSE;
p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST, p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST,
FIND_PARENT ); FIND_ANYWHERE );
if( !p_playlist ) if( !p_playlist )
{ {
msg_Err( p_demux, "can't find playlist" ); msg_Err( p_demux, "can't find playlist" );
......
...@@ -67,7 +67,7 @@ static int Demux( demux_t *p_demux) ...@@ -67,7 +67,7 @@ static int Demux( demux_t *p_demux)
playlist_t *p_playlist; playlist_t *p_playlist;
p_playlist = (playlist_t*)vlc_object_find( p_demux, p_playlist = (playlist_t*)vlc_object_find( p_demux,
VLC_OBJECT_PLAYLIST, FIND_PARENT ); VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( !p_playlist ) if( !p_playlist )
{ {
msg_Err( p_demux, "cannot attach playlist" ); msg_Err( p_demux, "cannot attach playlist" );
......
...@@ -114,7 +114,7 @@ static int Demux( demux_t *p_demux ) ...@@ -114,7 +114,7 @@ static int Demux( demux_t *p_demux )
vlc_bool_t b_play; vlc_bool_t b_play;
p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST, p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST,
FIND_PARENT ); FIND_ANYWHERE );
if( !p_playlist ) if( !p_playlist )
{ {
msg_Err( p_demux, "can't find playlist" ); msg_Err( p_demux, "can't find playlist" );
......
...@@ -131,7 +131,7 @@ static int Demux( demux_t *p_demux ) ...@@ -131,7 +131,7 @@ static int Demux( demux_t *p_demux )
int i_type; int i_type;
p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST, p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST,
FIND_PARENT ); FIND_NEXT );
if( !p_playlist ) if( !p_playlist )
{ {
msg_Err( p_demux, "can't find playlist" ); msg_Err( p_demux, "can't find playlist" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment