summaryrefslogtreecommitdiffstats
path: root/macosx/HBUtilities.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-30 07:13:07 +0000
committerritsuka <[email protected]>2014-12-30 07:13:07 +0000
commite85690352f677b49355633570ae1b34bb953f411 (patch)
treea5422a1bfa4af11f903cd69ea4d62765ce9f844e /macosx/HBUtilities.m
parent30d1c1cc1e7db5336ba614947dfecb54b453917d (diff)
MacGui: fix a bunch of regressions (various crash when in some textfields, encode log going to the wrong directory).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6676 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBUtilities.m')
-rw-r--r--macosx/HBUtilities.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/macosx/HBUtilities.m b/macosx/HBUtilities.m
index 7618c4263..eec539c2b 100644
--- a/macosx/HBUtilities.m
+++ b/macosx/HBUtilities.m
@@ -105,16 +105,16 @@
}
else if ([formatKey isEqualToString:@"{Quality/Bitrate}"])
{
- if (quality)
+ if (bitrate)
{
- // Append the right quality suffix for the selected codec (rf/qp)
- [name appendString:[[NSString stringWithUTF8String:hb_video_quality_get_name(codec)] lowercaseString]];
- [name appendString:[NSString stringWithFormat:@"%0.2f", quality]];
+ [name appendString:@"abr"];
+ [name appendString:[NSString stringWithFormat:@"%d", bitrate]];
}
else
{
- [name appendString:@"abr"];
- [name appendString:[NSString stringWithFormat:@"%d", bitrate]];
+ // Append the right quality suffix for the selected codec (rf/qp)
+ [name appendString:[[NSString stringWithUTF8String:hb_video_quality_get_name(codec)] lowercaseString]];
+ [name appendString:[NSString stringWithFormat:@"%0.2f", quality]];
}
}
else