]> granicus.if.org Git - handbrake/commitdiff
MacGui: use hb_generate_filter_settings() to generate the right settings string for...
authorDamiano Galassi <damiog@gmail.com>
Mon, 25 Jan 2016 18:05:29 +0000 (19:05 +0100)
committerDamiano Galassi <damiog@gmail.com>
Mon, 25 Jan 2016 18:05:29 +0000 (19:05 +0100)
macosx/HBJob+HBJobConversion.m

index 11009b6a9af7b1e059f0ce384a39c77d00b14837..5de06eb5c091fc881a48ab81b7bec15b8a643b02 100644 (file)
     // 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