Commit 9bdda527 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove silly use of vlc_object_find

parent 35ca7d7a
...@@ -179,8 +179,7 @@ static void CloseDecoder( vlc_object_t *p_this ) ...@@ -179,8 +179,7 @@ static void CloseDecoder( vlc_object_t *p_this )
intf_thread_t *p_intf; intf_thread_t *p_intf;
/* Destroy the interface object/thread */ /* Destroy the interface object/thread */
p_intf = vlc_object_find( p_dec, VLC_OBJECT_INTF, FIND_CHILD ); if( p_sys->p_intf != NULL )
if( p_intf != NULL )
{ {
#ifdef CMML_DEBUG #ifdef CMML_DEBUG
msg_Dbg( p_dec, "CMML decoder is freeing interface thread" ); msg_Dbg( p_dec, "CMML decoder is freeing interface thread" );
...@@ -188,11 +187,8 @@ static void CloseDecoder( vlc_object_t *p_this ) ...@@ -188,11 +187,8 @@ static void CloseDecoder( vlc_object_t *p_this )
intf_StopThread( p_intf ); intf_StopThread( p_intf );
vlc_object_detach( p_intf ); vlc_object_detach( p_intf );
vlc_object_release( p_intf ); vlc_object_release( p_intf );
vlc_object_release( p_intf );
} }
p_sys->p_intf = NULL;
free( p_sys ); free( p_sys );
} }
......
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