[vlc-commits] macosx: switch to the # syntax for VCDs

Felix Paul Kühne git at videolan.org
Thu Dec 29 01:27:12 CET 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 29 01:26:52 2011 +0100| [6fb10a6ff7b3950ee8a2ec1e991a85086bf6bd49] | committer: Felix Paul Kühne

macosx: switch to the # syntax for VCDs

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

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

diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index 5c5fb0c..5e5ba8b 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -824,7 +824,13 @@ static VLCOpen *_o_sharedMainInstance = nil;
         [self showOpticalMediaView: o_disc_audiocd_view withIcon: [[NSWorkspace sharedWorkspace] iconForFile: [o_opticalDevices objectAtIndex: index]]];
         [self setMRL: [NSString stringWithFormat: @"cdda://%@", [self getBSDNodeFromMountPath:[o_opticalDevices objectAtIndex: index]]]];
     }
-    else if (diskType == kVLCMediaVCD || diskType == kVLCMediaSVCD)
+    else if (diskType == kVLCMediaVCD)
+    {
+        [o_disc_vcd_lbl setStringValue: [[NSFileManager defaultManager] displayNameAtPath:[o_opticalDevices objectAtIndex: index]]];
+        [self showOpticalMediaView: o_disc_vcd_view withIcon: [[NSWorkspace sharedWorkspace] iconForFile: [o_opticalDevices objectAtIndex: index]]];
+        [self setMRL: [NSString stringWithFormat: @"vcd://%@#%i:%i", [self getBSDNodeFromMountPath:[o_opticalDevices objectAtIndex: index]], [o_disc_vcd_title intValue], [o_disc_vcd_chapter intValue]]];
+    }
+    else if (diskType == kVLCMediaSVCD)
     {
         [o_disc_vcd_lbl setStringValue: [[NSFileManager defaultManager] displayNameAtPath:[o_opticalDevices objectAtIndex: index]]];
         [self showOpticalMediaView: o_disc_vcd_view withIcon: [[NSWorkspace sharedWorkspace] iconForFile: [o_opticalDevices objectAtIndex: index]]];



More information about the vlc-commits mailing list