[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:21:22 CEST 2012


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

macosx: set the represented URL in the detached vout window correctly (close #6836)
(cherry picked from commit 9b56e18b3a577cb0f6615b355035f0f23e69b692)

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

 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 0792226..02391dc 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1303,9 +1303,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