Commit ff4982c0 authored by David Fuhrmann's avatar David Fuhrmann

macosx: always delete stored input thread on change (close #14850)

parent 74a86318
......@@ -1320,9 +1320,7 @@ static VLCMain *_o_sharedMainInstance = nil;
// This must be called on main thread
- (void)PlaylistItemChanged
{
input_thread_t *p_input_changed = NULL;
if (p_current_input && p_current_input->b_dead) {
if (p_current_input) {
var_DelCallback(p_current_input, "intf-event", InputEvent, [VLCMain sharedInstance]);
vlc_object_release(p_current_input);
p_current_input = NULL;
......@@ -1332,7 +1330,9 @@ static VLCMain *_o_sharedMainInstance = nil;
[[NSNotificationCenter defaultCenter] postNotificationName:VLCInputChangedNotification
object:nil];
}
else if (!p_current_input) {
input_thread_t *p_input_changed = NULL;
// object is hold here and released then it is dead
p_current_input = playlist_CurrentInput(pl_Get(VLCIntf));
if (p_current_input) {
......@@ -1353,7 +1353,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[[NSNotificationCenter defaultCenter] postNotificationName:VLCInputChangedNotification
object:nil];
}
}
[self updateMetaAndInfo];
......
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