summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-21 13:08:20 +0000
committerritsuka <[email protected]>2014-12-21 13:08:20 +0000
commitf258fb8da28967d8f2e2ddaf814233058197044f (patch)
tree409f34bde3375606b68e81fe4bb0d860c816dc00 /macosx/HBJob.m
parent6305d5f38aa273b0e8269db050eb1e958b55bd26 (diff)
MacGui: remove the last usage of title->job.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6636 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r--macosx/HBJob.m20
1 files changed, 11 insertions, 9 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m
index 0358929e7..946f24997 100644
--- a/macosx/HBJob.m
+++ b/macosx/HBJob.m
@@ -246,16 +246,18 @@
}
}
- if (self.video.qualityType != 2)
+ switch (self.video.qualityType)
{
- job->vquality = -1.0;
- job->vbitrate = self.video.avgBitrate;
- }
- if (self.video.qualityType == 2)
- {
- job->vquality = self.video.quality;
- job->vbitrate = 0;
-
+ case 0:
+ // ABR
+ job->vquality = -1.0;
+ job->vbitrate = self.video.avgBitrate;
+ break;
+ case 1:
+ // Constant Quality
+ job->vquality = self.video.quality;
+ job->vbitrate = 0;
+ break;
}
job->grayscale = self.filters.grayscale;