[vlc-devel] commit: Preparser: yield the playlist (NSDRCID 1) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 31 23:01:21 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun  1 00:03:00 2008 +0300| [f3b97438a7451c340b27446d687c6c5603a8323a]

Preparser: yield the playlist (NSDRCID 1)

(Not-So-Dumb-References-Checker IDentifier one)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f3b97438a7451c340b27446d687c6c5603a8323a
---

 src/playlist/engine.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index b8731e6..626db4b 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -479,7 +479,7 @@ void playlist_LastLoop( playlist_t *p_playlist )
  */
 void playlist_PreparseLoop( playlist_preparse_t *p_obj )
 {
-    playlist_t *p_playlist = (playlist_t *)p_obj->p_parent;
+    playlist_t *p_playlist = pl_Yield( p_obj );
     input_item_t *p_current;
     int i_activity;
 
@@ -557,6 +557,7 @@ void playlist_PreparseLoop( playlist_preparse_t *p_obj )
         vlc_object_lock( p_obj );
     }
     vlc_object_unlock( p_obj );
+    pl_Release( p_obj );
 }
 
 /**




More information about the vlc-devel mailing list