diff options
author | John Stebbins <[email protected]> | 2019-05-05 15:16:24 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-05-05 15:18:36 -0600 |
commit | faf3b92d86d31d261f7017fd311720286cd61dca (patch) | |
tree | fa7b978f8c8d8f5d61ea97ab799756d17ff67e7c /gtk | |
parent | a9e2e3aeeb366533af5ea510a1614826651a6128 (diff) |
LinGui: fix missing x265 fastdecode tune
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/hb-backend.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 6d70fb300..e1a9892b1 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -2418,16 +2418,20 @@ video_tune_opts_set(signal_user_data_t *ud, const gchar *name, for (ii = 0; ii < count; ii++) { - if (strcmp(tunes[ii], "fastdecode") && strcmp(tunes[ii], "zerolatency")) + if (((encoder & HB_VCODEC_X264_MASK) && + !strcmp(tunes[ii], "fastdecode")) || + ((encoder & (HB_VCODEC_X264_MASK | HB_VCODEC_X265_MASK)) && + !strcmp(tunes[ii], "zerolatency"))) { - gtk_list_store_append(store, &iter); - gtk_list_store_set(store, &iter, - 0, tunes[ii], - 1, TRUE, - 2, tunes[ii], - 3, (gdouble)ii + 1, - -1); + continue; } + gtk_list_store_append(store, &iter); + gtk_list_store_set(store, &iter, + 0, tunes[ii], + 1, TRUE, + 2, tunes[ii], + 3, (gdouble)ii + 1, + -1); } } |