From 5aa278c113e0178b7ccd39b9339a0dbc50fd3463 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Sat, 16 May 2015 20:16:50 +0000 Subject: 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 --- macosx/HBVideo.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'macosx/HBVideo.m') 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) { -- cgit v1.2.3