]> git.sesse.net Git - vlc/commitdiff
Revert "Preparser: yield the playlist (NSDRCID 1)"
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 31 May 2008 22:21:29 +0000 (00:21 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 31 May 2008 22:21:29 +0000 (00:21 +0200)
This reverts commit f3b97438a7451c340b27446d687c6c5603a8323a.

It creates a circular reference holding. (playlist is the parent of the preparser and hold a reference to the preparser during all the preparser life's span).

src/playlist/engine.c

index 626db4b30773d4ba00441dfc957b773ea62dea4a..b8731e6d77085687a35809b4447d19c7ae5732ef 100644 (file)
@@ -479,7 +479,7 @@ void playlist_LastLoop( playlist_t *p_playlist )
  */
 void playlist_PreparseLoop( playlist_preparse_t *p_obj )
 {
-    playlist_t *p_playlist = pl_Yield( p_obj );
+    playlist_t *p_playlist = (playlist_t *)p_obj->p_parent;
     input_item_t *p_current;
     int i_activity;
 
@@ -557,7 +557,6 @@ void playlist_PreparseLoop( playlist_preparse_t *p_obj )
         vlc_object_lock( p_obj );
     }
     vlc_object_unlock( p_obj );
-    pl_Release( p_obj );
 }
 
 /**