OSDN Git Service

MacGui: Fix issue where Source is display with the volume id (ie. disk1) instead...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 28 Sep 2007 13:38:15 +0000 (13:38 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 28 Sep 2007 13:38:15 +0000 (13:38 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@997 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index 63525db..8bfe5d1 100644 (file)
@@ -1007,14 +1007,15 @@ static NSString *        ChooseSourceIdentifier             = @"Choose Source It
                {
                        title = (hb_title_t *) hb_list_item( list, i );
                        
                {
                        title = (hb_title_t *) hb_list_item( list, i );
                        
-            currentSource = [NSString stringWithUTF8String: title->dvd];
+            currentSource = [NSString stringWithUTF8String: title->name];
             
             /* To get the source name as well as the default output name, first we check to see if
                the selected directory is the VIDEO_TS Directory */
             if ([[currentSource lastPathComponent] isEqualToString: @"VIDEO_TS"])
             {
             
             /* To get the source name as well as the default output name, first we check to see if
                the selected directory is the VIDEO_TS Directory */
             if ([[currentSource lastPathComponent] isEqualToString: @"VIDEO_TS"])
             {
-            /* If VIDEO_TS Folder is chosen, choose its parent folder for the source display name */
-            sourceDisplayName = [NSString stringWithFormat:[[currentSource stringByDeletingLastPathComponent] lastPathComponent]];
+            /* If VIDEO_TS Folder is chosen, choose its parent folder for the source display name 
+               we have to use the title->dvd value so we get the proper name of the volume if a physical dvd is the source*/
+            sourceDisplayName = [NSString stringWithFormat:[[[NSString stringWithUTF8String: title->dvd] stringByDeletingLastPathComponent] lastPathComponent]];
             }
             else
             {
             }
             else
             {