Commit 970d0bcd authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Mac OS X gui: Don't try to change the interface from a non-main thread....

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)
parent 75a65681
...@@ -1056,7 +1056,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1056,7 +1056,6 @@ static VLCMain *_o_sharedMainInstance = nil;
/* input stopped */ /* input stopped */
p_intf->p_sys->b_intf_update = VLC_TRUE; p_intf->p_sys->b_intf_update = VLC_TRUE;
p_intf->p_sys->i_play_status = END_S; 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" ); msg_Dbg( p_intf, "input has stopped, refreshing interface" );
p_intf->p_sys->p_input = NULL; p_intf->p_sys->p_input = NULL;
} }
...@@ -1252,7 +1251,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1252,7 +1251,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[self updateMessageArray]; [self updateMessageArray];
if( (i_end_scroll != -1) && (mdate() > i_end_scroll) ) if( ((i_end_scroll != -1) && (mdate() > i_end_scroll)) || !p_input )
[self resetScrollField]; [self resetScrollField];
[NSTimer scheduledTimerWithTimeInterval: 0.3 [NSTimer scheduledTimerWithTimeInterval: 0.3
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment