summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/src/presets.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index b9edb60bb..dd0a5b96f 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -1768,14 +1768,18 @@ ghb_settings_to_preset(GhbValue *settings)
g_string_append_printf(str, "%s", tune);
sep = ",";
}
- if (ghb_dict_get_bool(preset, "x264FastDecode"))
+ int encoder = ghb_get_video_encoder(settings);
+ if (encoder & HB_VCODEC_X264_MASK)
{
- g_string_append_printf(str, "%s%s", sep, "fastdecode");
- sep = ",";
- }
- if (ghb_dict_get_bool(preset, "x264ZeroLatency"))
- {
- g_string_append_printf(str, "%s%s", sep, "zerolatency");
+ if (ghb_dict_get_bool(preset, "x264FastDecode"))
+ {
+ g_string_append_printf(str, "%s%s", sep, "fastdecode");
+ sep = ",";
+ }
+ if (ghb_dict_get_bool(preset, "x264ZeroLatency"))
+ {
+ g_string_append_printf(str, "%s%s", sep, "zerolatency");
+ }
}
char *tunes;
tunes = g_string_free(str, FALSE);