]> git.sesse.net Git - vlc/commitdiff
Fixed vout leak.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 3 Dec 2008 21:44:18 +0000 (22:44 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 4 Dec 2008 19:34:07 +0000 (20:34 +0100)
The spu has to be detached from the vout object, otherwise the vout will
never be destroyed.

src/video_output/video_output.c

index 9790f77eee71921b37cad6626ad9aa385d2835d7..8d5b2542ea547246786fdd0319e31b2ca287b933 100644 (file)
@@ -1416,8 +1416,9 @@ static void EndThread( vout_thread_t *p_vout )
 
     /* FIXME does that function *really* need to be called inside the thread ? */
 
-    /* Destroy subpicture unit */
+    /* Detach subpicture unit from both input and vout */
     spu_Attach( p_vout->p_spu, VLC_OBJECT(p_vout), false );
+    vlc_object_detach( p_vout->p_spu );
 
     /* Destroy the video filters2 */
     filter_chain_Delete( p_vout->p->p_vf2_chain );