We don't need to detach. Since we're in the parent's destructor, it's already been...
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 23 Jun 2008 15:40:35 +0000 (17:40 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 23 Jun 2008 15:40:35 +0000 (17:40 +0200)
src/video_output/video_output.c
src/video_output/vout_subpictures.c

index 710d860..eb64a3e 100644 (file)
@@ -1223,7 +1223,6 @@ static void EndThread( vout_thread_t *p_vout )
     if( !p_vout->b_direct )
     {
         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;
     }
index 14dd76d..70e81c2 100644 (file)
@@ -150,8 +150,6 @@ void spu_Destroy( spu_t *p_spu )
 {
     int i_index;
 
-    vlc_object_detach( p_spu );
-
     /* Destroy all remaining subpictures */
     for( i_index = 0; i_index < VOUT_MAX_SUBPICTURES; i_index++ )
     {