diff options
author | Rodeo <[email protected]> | 2015-05-16 20:16:50 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2015-05-16 20:16:50 +0000 |
commit | 5aa278c113e0178b7ccd39b9339a0dbc50fd3463 (patch) | |
tree | 2e4cda24b14197b982798d5ec6047c4ac9acc33d /macosx/HBVideo.m | |
parent | f7575590ab950bd9f60412e1fbd97da752296dbd (diff) |
MacGUI: don't double-sanitize encoder names.
*_get_from_name is where the encoder gets sanitized,
*_sanitize_name is only required when you need the
encoder name instead of its value.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7196 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBVideo.m')
-rw-r--r-- | macosx/HBVideo.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index 490bb29be..b1a002bba 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -504,8 +504,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; self.notificationsEnabled = NO; // map legacy encoder names via libhb. - const char *strValue = hb_video_encoder_sanitize_name([preset[@"VideoEncoder"] UTF8String]); - self.encoder = hb_video_encoder_get_from_name(strValue); + self.encoder = hb_video_encoder_get_from_name([preset[@"VideoEncoder"] UTF8String]); if (self.encoder == HB_VCODEC_X264 || self.encoder == HB_VCODEC_X265) { |