[vlc-devel] commit: Remove silly use of vlc_object_find ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jan 19 19:06:01 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Jan 19 20:02:39 2009 +0200| [9bdda527ac6b7be4cf79cd4c6645a4c4c7f7002a] | committer: Rémi Denis-Courmont 

Remove silly use of vlc_object_find

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9bdda527ac6b7be4cf79cd4c6645a4c4c7f7002a
---

 modules/codec/cmml/cmml.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/modules/codec/cmml/cmml.c b/modules/codec/cmml/cmml.c
index e5d7b8b..cbbad7e 100644
--- a/modules/codec/cmml/cmml.c
+++ b/modules/codec/cmml/cmml.c
@@ -179,8 +179,7 @@ static void CloseDecoder( vlc_object_t *p_this )
     intf_thread_t *p_intf;
 
     /* Destroy the interface object/thread */
-    p_intf = vlc_object_find( p_dec, VLC_OBJECT_INTF, FIND_CHILD );
-    if( p_intf != NULL )
+    if( p_sys->p_intf != NULL )
     {
 #ifdef CMML_DEBUG
         msg_Dbg( p_dec, "CMML decoder is freeing interface thread" );
@@ -188,11 +187,8 @@ static void CloseDecoder( vlc_object_t *p_this )
         intf_StopThread( p_intf );
         vlc_object_detach( p_intf );
         vlc_object_release( p_intf );
-        vlc_object_release( p_intf );
     }
 
-    p_sys->p_intf = NULL;
-
     free( p_sys );
 }
 




More information about the vlc-devel mailing list