[vlc-devel] commit: Check properly if vout is dying - CID 7 ( Rafaël Carré )

git version control git at videolan.org
Fri May 30 15:53:00 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri May 30 15:54:37 2008 +0200| [3a8dc9aa12268701539287f7a93726935fb87d77]

Check properly if vout is dying - CID 7

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

 modules/codec/cmml/intf.c |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/modules/codec/cmml/intf.c b/modules/codec/cmml/intf.c
index 6ca85e0..4a13d42 100644
--- a/modules/codec/cmml/intf.c
+++ b/modules/codec/cmml/intf.c
@@ -188,17 +188,16 @@ static void RunIntf( intf_thread_t *p_intf )
     msg_Dbg( p_intf, "CMML intf initialized" );
 #endif
 
-    /* if video output is dying, disassociate ourselves from it */
-    if( p_vout && p_vout->b_die )
-    {
-        var_DelCallback( p_vout, "mouse-clicked", MouseEvent, p_intf );
-        vlc_object_release( p_vout );
-        p_vout = NULL;
-    }
-
     /* Main loop */
     while( !p_intf->b_die )
     {
+        /* if video output is dying, disassociate ourselves from it */
+        if( p_vout && p_vout->b_die )
+        {
+            var_DelCallback( p_vout, "mouse-clicked", MouseEvent, p_intf );
+            vlc_object_release( p_vout );
+            p_vout = NULL;
+        }
 
         /* find a video output if we currently don't have one */
         if( p_vout == NULL )




More information about the vlc-devel mailing list