Commit c87e0df3 authored by David Fuhrmann's avatar David Fuhrmann

macosx: properly inform the extension manager about finished inputs

parent 46d154e1
...@@ -1258,11 +1258,11 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1258,11 +1258,11 @@ static VLCMain *_o_sharedMainInstance = nil;
// This must be called on main thread // This must be called on main thread
- (void)PlaylistItemChanged - (void)PlaylistItemChanged
{ {
input_thread_t *p_input_changed = nil; input_thread_t *p_input_changed = NULL;
if (p_current_input && (p_current_input->b_dead || !vlc_object_alive(p_current_input))) { if (p_current_input && (p_current_input->b_dead || !vlc_object_alive(p_current_input))) {
var_DelCallback(p_current_input, "intf-event", InputEvent, [VLCMain sharedInstance]); var_DelCallback(p_current_input, "intf-event", InputEvent, [VLCMain sharedInstance]);
p_input_changed = p_current_input; vlc_object_release(p_current_input);
p_current_input = NULL; p_current_input = NULL;
[o_mainmenu setRateControlsEnabled: NO]; [o_mainmenu setRateControlsEnabled: NO];
...@@ -1293,12 +1293,11 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1293,12 +1293,11 @@ static VLCMain *_o_sharedMainInstance = nil;
* and other issues, we need to inform the extension manager on a separate thread. * and other issues, we need to inform the extension manager on a separate thread.
* The serial queue ensures that changed inputs are propagated in the same order as they arrive. * The serial queue ensures that changed inputs are propagated in the same order as they arrive.
*/ */
if (p_input_changed) { dispatch_async(informInputChangedQueue, ^{
dispatch_async(informInputChangedQueue, ^{ [[ExtensionsManager getInstance:p_intf] inputChanged:p_input_changed];
[[ExtensionsManager getInstance:p_intf] inputChanged:p_input_changed]; if (p_input_changed)
vlc_object_release(p_input_changed); vlc_object_release(p_input_changed);
}); });
}
} }
- (void)updateMainMenu - (void)updateMainMenu
......
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