diff options
author | jstebbins <[email protected]> | 2014-02-23 23:21:13 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-23 23:21:13 +0000 |
commit | 7387f3e798334b15e2a5eb8d2273731f65184037 (patch) | |
tree | e96239af761c074be62186affa7c6809c553c7f9 /gtk/src/presets.c | |
parent | ebd9533599ce8cedca9f11efde75f60ca5141b66 (diff) |
LinGui: use hb_video_encoder_get_presets()
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6075 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r-- | gtk/src/presets.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 940cadaaa..fe3172f5e 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -1047,12 +1047,13 @@ ghb_preset_to_settings(GValue *settings, GValue *preset) ghb_dict_remove(settings, "x264Option"); } - const char * const *x264preset = hb_x264_presets(); + const char * const *x264presets; + x264presets = hb_video_encoder_get_presets(HB_VCODEC_X264); char *x264Preset = ghb_settings_get_string(settings, "x264Preset"); int ii; - for (ii = 0; x264preset[ii]; ii++) + for (ii = 0; x264presets[ii]; ii++) { - if (!strcasecmp(x264Preset, x264preset[ii])) + if (!strcasecmp(x264Preset, x264presets[ii])) { ghb_settings_set_int(settings, "x264PresetSlider", ii); } |