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

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


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

macosx: minor optimisation as suggested by Rafael
(cherry picked from commit a97866c8f25d9d7645519a3a759683a9a17e2281)

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

 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 8a89cfb..c1ec641 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -843,10 +843,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