[vlc-commits] macosx: set the represented URL in the detached vout window correctly ( close #6836)

Felix Paul Kühne git at videolan.org
Fri May 18 15:20:35 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri May 18 15:20:17 2012 +0200| [9b56e18b3a577cb0f6615b355035f0f23e69b692] | committer: Felix Paul Kühne

macosx: set the represented URL in the detached vout window correctly (close #6836)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b56e18b3a577cb0f6615b355035f0f23e69b692
---

 modules/gui/macosx/MainWindow.m |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 8fcb51a..60a1b23 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1529,9 +1529,13 @@ static VLCMainWindow *_o_sharedInstance = nil;
 
         NSURL * o_url = [NSURL URLWithString: [NSString stringWithUTF8String: uri]];
         if ([o_url isFileURL])
+        {
             [self setRepresentedURL: o_url];
-        else
+            [o_detached_video_window setRepresentedURL: o_url];
+        } else {
             [self setRepresentedURL: nil];
+            [o_detached_video_window setRepresentedURL: nil];
+        }
         free( uri );
 
         if ([aString isEqualToString:@""])



More information about the vlc-commits mailing list