]> git.sesse.net Git - vlc/blobdiff - modules/gui/fbosd.c
Qt4: Always parent all preferences to avoid funny windows/widget effects.
[vlc] / modules / gui / fbosd.c
index fcfb3c53fd1484ad7f3b7de6192b8ae1531c7551..ef3de6dc43a69419dcf9dd1d3e73c048d1c47729 100644 (file)
@@ -1270,8 +1270,9 @@ static bool isRendererReady( intf_thread_t *p_intf )
 static void Run( intf_thread_t *p_intf )
 {
     intf_sys_t *p_sys = (intf_sys_t*) p_intf->p_sys;
+    int canc = vlc_savecancel();
 
-    while( !intf_ShouldDie( p_intf ) )
+    while( vlc_object_alive( p_intf ) )
     {
         int i;
 
@@ -1322,6 +1323,7 @@ static void Run( intf_thread_t *p_intf )
     }
 
     End( p_intf );
+    vlc_restorecancel( canc );
 }
 
 static int OverlayCallback( vlc_object_t *p_this, char const *psz_cmd,