summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-09-28 13:38:15 +0000
committerdynaflash <[email protected]>2007-09-28 13:38:15 +0000
commitc2d42d36deaa4dc98c113c8c5dc688979c583728 (patch)
treec8e3b4fedbc7549fcc633b9b34ef07c1ed62bdb0
parent00af0caeb53d4234c2120689e5cb9cc0ec2dffcd (diff)
MacGui: Fix issue where Source is display with the volume id (ie. disk1) instead of the volume name if source is a physical dvd. This bug was introduced pre 0.9.0 with the integrated source scan controller.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@997 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.mm7
1 files changed, 4 insertions, 3 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 63525db2a..8bfe5d135 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -1007,14 +1007,15 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
{
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"])
{
- /* 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
{