]> git.sesse.net Git - vlc/blobdiff - modules/misc/dummy/input.c
Replaced a certain amount of vlc_object_find by pl_Yield
[vlc] / modules / misc / dummy / input.c
index 81e24b072292196442862b3d89e9bb6fdfd1f78e..64ba12dde34d2412b8dee6be5c09de8908b64f8d 100644 (file)
@@ -206,13 +206,7 @@ static int Demux( demux_t *p_demux )
     playlist_t *p_playlist;
     bool b_eof = false;
 
-    p_playlist = vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST, FIND_PARENT );
-
-    if( p_playlist == NULL )
-    {
-        msg_Err( p_demux, "we are not attached to a playlist" );
-        return -1;
-    }
+    p_playlist = pl_Yield( p_demux );
 
     switch( p_sys->i_command )
     {