Commit f6803fd0 authored by Laurent Aimar's avatar Laurent Aimar

Fixed vout leak.

The spu has to be detached from the vout object, otherwise the vout will
never be destroyed.
parent a3ac28fb
...@@ -1416,8 +1416,9 @@ static void EndThread( vout_thread_t *p_vout ) ...@@ -1416,8 +1416,9 @@ static void EndThread( vout_thread_t *p_vout )
/* FIXME does that function *really* need to be called inside the thread ? */ /* 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 ); spu_Attach( p_vout->p_spu, VLC_OBJECT(p_vout), false );
vlc_object_detach( p_vout->p_spu );
/* Destroy the video filters2 */ /* Destroy the video filters2 */
filter_chain_Delete( p_vout->p->p_vf2_chain ); filter_chain_Delete( p_vout->p->p_vf2_chain );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment