[vlc-devel] commit: NULLify p_playlist when the playlist is gone ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jun 12 20:35:33 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jun 12 21:37:23 2008 +0300| [b3de39d4bde46f4702e3ca4052e3abfcca330c61]

NULLify p_playlist when the playlist is gone

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

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

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index bcda392..59bfdea 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -176,6 +176,9 @@ static void playlist_Destructor( vlc_object_t * p_this )
 
     if( p_playlist->p_fetcher )
         vlc_object_release( p_playlist->p_fetcher );
+#ifndef NDEBUG
+    p_this->p_libvlc->p_playlist = NULL; /* pl_Yield() will fail */
+#endif
 }
 
 /* Destroy remaining objects */




More information about the vlc-devel mailing list