]> git.sesse.net Git - vlc/commitdiff
Do not use FIND_ANYWHERE for playlist.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 31 May 2007 21:46:52 +0000 (21:46 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 31 May 2007 21:46:52 +0000 (21:46 +0000)
modules/demux/mp4/mp4.c

index 9cc403e8be9330a77f853804bfa0888a5913e82b..07d09002a0861b709e79cc930ea8bcc668e1d2e1 100644 (file)
@@ -363,10 +363,7 @@ static int Open( vlc_object_t * p_this )
 
         msg_Dbg( p_demux, "detected playlist mov file (%d ref)", i_count );
 
-        p_playlist =
-            (playlist_t *)vlc_object_find( p_demux,
-                                           VLC_OBJECT_PLAYLIST,
-                                           FIND_ANYWHERE );
+        p_playlist = pl_Yield( p_demux );
         if( p_playlist )
         {
             b_play = FindItem( p_demux, p_playlist, &p_current );