From 970d0bcde179c169bb5b5ceeee9264b27a691c27 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Mon, 5 Mar 2007 00:40:51 +0000 Subject: [PATCH] Mac OS X gui: Don't try to change the interface from a non-main thread. (Should fix a remanence bug in the controller scroll field) --- modules/gui/macosx/intf.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index 516c6dd7f1..fcf3b84b28 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -1056,7 +1056,6 @@ static VLCMain *_o_sharedMainInstance = nil; /* input stopped */ p_intf->p_sys->b_intf_update = VLC_TRUE; p_intf->p_sys->i_play_status = END_S; - [self setScrollField: _NS("VLC media player") stopAfter:-1]; msg_Dbg( p_intf, "input has stopped, refreshing interface" ); p_intf->p_sys->p_input = NULL; } @@ -1252,7 +1251,7 @@ static VLCMain *_o_sharedMainInstance = nil; [self updateMessageArray]; - if( (i_end_scroll != -1) && (mdate() > i_end_scroll) ) + if( ((i_end_scroll != -1) && (mdate() > i_end_scroll)) || !p_input ) [self resetScrollField]; [NSTimer scheduledTimerWithTimeInterval: 0.3 -- 2.39.2