]> git.sesse.net Git - vlc/commitdiff
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 63f9beabd13f7fba6d6d2bea7168d2ef91258652..9a724c6b289fe87fd32798dee29fd7987d2d587b 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 );