From: Christophe Massiot Date: Sun, 19 May 2002 17:27:39 +0000 (+0000) Subject: * Fixed a segfault in the Mac OS X interface. X-Git-Tag: 0.4.0~53 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=dc0450f9865e479ef5cb3885f079f5a0ec674ea6;p=vlc * Fixed a segfault in the Mac OS X interface. --- diff --git a/plugins/macosx/intf_vlc_wrapper.m b/plugins/macosx/intf_vlc_wrapper.m index b69e578ab1..17eb6434a3 100644 --- a/plugins/macosx/intf_vlc_wrapper.m +++ b/plugins/macosx/intf_vlc_wrapper.m @@ -2,7 +2,7 @@ * intf_vlc_wrapper.c: MacOS X plugin for vlc ***************************************************************************** * Copyright (C) 2001 VideoLAN - * $Id: intf_vlc_wrapper.m,v 1.3 2002/05/18 13:33:44 massiot Exp $ + * $Id: intf_vlc_wrapper.m,v 1.4 2002/05/19 17:27:39 massiot Exp $ * * Authors: Florian G. Pflug * Jon Lech Johansen @@ -98,6 +98,7 @@ static Intf_VLCWrapper *o_intf = nil; p_input_bank->pp_input[0]->stream.p_selected_area->i_part ) { [self setupMenus]; + p_main->p_intf->p_sys->b_disabled_menus = 0; } } @@ -106,6 +107,7 @@ static Intf_VLCWrapper *o_intf = nil; else if ( !p_main->p_intf->p_sys->b_disabled_menus ) { [self setupMenus]; + p_main->p_intf->p_sys->b_disabled_menus = 1; } return( 0 ); @@ -932,8 +934,6 @@ static Intf_VLCWrapper *o_intf = nil; } p_input->stream.b_changed = 0; } - - p_main->p_intf->p_sys->b_disabled_menus = 1; } @end