diff options
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r-- | macosx/HBController.m | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index 602401a2a..fa57e1141 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -708,7 +708,17 @@ HBJob *job = [[HBJob alloc] initWithTitle:title andPreset:self.currentPreset]; job.outputURL = self.currentDestination; - job.outputFileName = [HBUtilities defaultNameForJob:job]; + + // If the source is not a stream, and autonaming is disabled, + // keep the existing file name. + if (self.job.outputFileName.length == 0 || title.isStream || [[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultAutoNaming"]) + { + job.outputFileName = [HBUtilities defaultNameForJob:job]; + } + else + { + job.outputFileName = self.job.outputFileName; + } return job; } |