From 1cac193f4108f228f6551d7b39d2728f150e7172 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 25 Jan 2016 19:05:29 +0100 Subject: [PATCH] MacGui: use hb_generate_filter_settings() to generate the right settings string for the rotate filter. --- macosx/HBJob+HBJobConversion.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m index 11009b6a9..5de06eb5c 100644 --- a/macosx/HBJob+HBJobConversion.m +++ b/macosx/HBJob+HBJobConversion.m @@ -485,8 +485,13 @@ // Add rotate filter if (self.filters.rotate || self.filters.flip) { - filter = hb_filter_init(HB_FILTER_ROTATE); - hb_add_filter(job, filter, [NSString stringWithFormat:@"%d:%d", self.filters.rotate, self.filters.flip].UTF8String); + int filter_id = HB_FILTER_ROTATE; + const char *filter_str = hb_generate_filter_settings(filter_id, + [NSString stringWithFormat:@"%d:%d", self.filters.rotate, self.filters.flip].UTF8String, + NULL); + + filter = hb_filter_init(filter_id); + hb_add_filter(job, filter, filter_str); } // Add framerate shaping filter -- 2.40.0