[vlc-commits] macosx: minor optimisation as suggested by Rafael

Felix Paul Kühne git at videolan.org
Sun Feb 12 22:25:24 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Feb 12 22:25:21 2012 +0100| [a97866c8f25d9d7645519a3a759683a9a17e2281] | committer: Felix Paul Kühne

macosx: minor optimisation as suggested by Rafael

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

 modules/gui/macosx/open.m |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index b593ce0..47754df 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -849,10 +849,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
     {
         [o_disc_bd_lbl setStringValue: [[NSFileManager defaultManager] displayNameAtPath: o_currentOpticalDevice]];
         [self showOpticalMediaView: o_disc_bd_view withIcon: [[NSWorkspace sharedWorkspace] iconForFile: o_currentOpticalDevice]];
-        if (diskType == kVLCMediaBD)
-            [self setMRL: [NSString stringWithFormat: @"bluray://%@", o_currentOpticalDevice]];
-        else
-            [self setMRL: [NSString stringWithFormat: @"bluray://%@", o_currentOpticalDevice]];
+        [self setMRL: [NSString stringWithFormat: @"bluray://%@", o_currentOpticalDevice]];
     }
     else
     {



More information about the vlc-commits mailing list