Don't release vout if it ain't present (eg. when audio is playing and
authorIlkka Ollakka <ileoo@videolan.org>
Fri, 27 Jun 2008 11:29:41 +0000 (14:29 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 27 Jun 2008 11:29:41 +0000 (14:29 +0300)
background image is only visible).

modules/gui/qt4/menus.cpp

index 63f9bea..9a724c6 100644 (file)
@@ -801,9 +801,9 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
                             qtr( "Leave Fullscreen" ),"" , ITEM_NORMAL,
                             p_vout->i_object_id, val, VLC_VAR_BOOL,
                             b_isFullscreen );
+                vlc_object_release( p_vout );
             }
 
-            vlc_object_release( p_vout );
             menu->addSeparator();
 
             vlc_object_yield( p_input );