vlc | branch: master | Felix Paul Kühne <[email protected]> | Sun Nov 11 16:00:47 2012 +0100| [1b57d370e53be1bfbb24ccf97b879e51fc359f89] | committer: Felix Paul Kühne
macosx: another sanity check since in rare circumstances an input's URL may be nil > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b57d370e53be1bfbb24ccf97b879e51fc359f89 --- modules/gui/macosx/MainWindow.m | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m index 9e649d4..42f9017 100644 --- a/modules/gui/macosx/MainWindow.m +++ b/modules/gui/macosx/MainWindow.m @@ -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")]; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
