diff options
author | jstebbins <[email protected]> | 2014-12-16 16:50:50 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-16 16:50:50 +0000 |
commit | f56efd7b52c89da8cac55b4d4a187f2c87fdfee6 (patch) | |
tree | 24eacb856704fa8e4b8b8f0edc76568916f70255 /macosx/HBPreviewGenerator.m | |
parent | d0a975e42dcab93e1d2eead350fb1ba3951d977c (diff) |
json: add json APIs
There are several changes to job and title structs that break
current windows interop code. The interop code should be changed
such that it only uses json APIs. So if there is any missing
features (or bugs) in these APIs, please let me know.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6602 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewGenerator.m')
-rw-r--r-- | macosx/HBPreviewGenerator.m | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/macosx/HBPreviewGenerator.m b/macosx/HBPreviewGenerator.m index ccbe7473c..3e9adbe9b 100644 --- a/macosx/HBPreviewGenerator.m +++ b/macosx/HBPreviewGenerator.m @@ -104,13 +104,14 @@ typedef enum EncodeState : NSUInteger { { NSImage *img = nil; - hb_ui_geometry_t geo; - geo.width = title->job->width; - geo.height = title->job->height; + hb_geometry_settings_t geo; + memset(&geo, 0, sizeof(geo)); + geo.geometry.width = title->job->width; + geo.geometry.height = title->job->height; // HBPreviewController will scale the image later, // ignore the par. - geo.par.num = 1; - geo.par.den = 1; + geo.geometry.par.num = 1; + geo.geometry.par.den = 1; memcpy(geo.crop, title->job->crop, sizeof(int[4])); hb_image_t *image; |