Commit 3333b45a authored by Antoine Cellerier's avatar Antoine Cellerier

Fix release of chroma module in vout core. I still get an "object is not

attached" on vlc_object_detach although the object was attached
previously ... what could that be due to?
parent 37a2578c
...@@ -1147,6 +1147,8 @@ static void RunThread( vout_thread_t *p_vout) ...@@ -1147,6 +1147,8 @@ static void RunThread( vout_thread_t *p_vout)
if( !p_vout->b_direct ) if( !p_vout->b_direct )
{ {
module_Unneed( p_vout->p_chroma, p_vout->p_chroma->p_module ); module_Unneed( p_vout->p_chroma, p_vout->p_chroma->p_module );
vlc_object_detach( p_vout->p_chroma );
vlc_object_release( p_vout->p_chroma );
p_vout->p_chroma = NULL; p_vout->p_chroma = NULL;
} }
...@@ -1221,7 +1223,9 @@ static void EndThread( vout_thread_t *p_vout ) ...@@ -1221,7 +1223,9 @@ static void EndThread( vout_thread_t *p_vout )
if( !p_vout->b_direct ) if( !p_vout->b_direct )
{ {
module_Unneed( p_vout->p_chroma, p_vout->p_chroma->p_module ); module_Unneed( p_vout->p_chroma, p_vout->p_chroma->p_module );
p_vout->p_chroma->p_module = NULL; vlc_object_detach( p_vout->p_chroma );
vlc_object_release( p_vout->p_chroma );
p_vout->p_chroma = NULL;
} }
/* Destroy all remaining pictures */ /* Destroy all remaining pictures */
......
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