summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <damiog@gmail.com>2016-01-25 19:05:29 +0100
committerDamiano Galassi <damiog@gmail.com>2016-01-25 19:05:29 +0100
commit1cac193f4108f228f6551d7b39d2728f150e7172 (patch)
treecaa4b600afda365047e1b2facfe97ca62ed7c027 /macosx
parent14ec182e0a9c1554e4472c735a2f8162e18378ce (diff)
MacGui: use hb_generate_filter_settings() to generate the right settings string for the rotate filter.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBJob+HBJobConversion.m9
1 files 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