Commit 1b57d370 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: another sanity check since in rare circumstances an input's URL may be nil

parent 5138b463
......@@ -644,12 +644,18 @@ static VLCMainWindow *_o_sharedInstance = nil;
aString = [o_url absoluteString];
}
[self setTitle: aString];
[[[VLCMain sharedInstance] voutController] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
[o_window setTitle:aString];
}];
if ([aString length] > 0) {
[self setTitle: aString];
[[[VLCMain sharedInstance] voutController] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
[o_window setTitle:aString];
}];
[o_fspanel setStreamTitle: aString];
} else {
[self setTitle: _NS("VLC media player")];
[self setRepresentedURL: nil];
}
[o_fspanel setStreamTitle: aString];
vlc_object_release(p_input);
} else {
[self setTitle: _NS("VLC media player")];
......
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