diff options
author | jstebbins <[email protected]> | 2011-03-04 18:51:17 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-03-04 18:51:17 +0000 |
commit | 426290fc174745906f47d3f54729ffeb597ea1dc (patch) | |
tree | 6f2e9fff42eeec4b004bd6f386586020f3a0691e | |
parent | b0c75fdf80649778176d7b5d526dd3257c08e967 (diff) |
LinGui: fix display of "quality" units in queue when ffmpeg encoder is used
was showing "RF" when should have been "QP"
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3824 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | gtk/src/queuehandler.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index 4b9c9fb62..69efbd8ca 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -238,6 +238,8 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) } break; } vqtype = ghb_settings_get_boolean(settings, "vquality_type_constant"); + vcodec = ghb_settings_combo_option(settings, "VideoEncoder"); + vcodec_abbr = ghb_settings_get_string(settings, "VideoEncoder"); gchar *vq_desc = "Error"; gchar *vq_units = ""; @@ -257,7 +259,14 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) vqvalue = ghb_settings_get_double(settings, "VideoQualitySlider"); vq_desc = "Constant Quality:"; vqstr = g_strdup_printf("%d", (gint)vqvalue); - vq_units = "(RF)"; + if (strcmp(vcodec_abbr, "x264") == 0) + { + vq_units = "(RF)"; + } + else + { + vq_units = "(QP)"; + } } fps = ghb_settings_get_string(settings, "VideoFramerate"); if (strcmp("source", fps) == 0) @@ -275,8 +284,6 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) g_free(fps); fps = tmp; } - vcodec = ghb_settings_combo_option(settings, "VideoEncoder"); - vcodec_abbr = ghb_settings_get_string(settings, "VideoEncoder"); source_width = ghb_settings_get_int(settings, "source_width"); source_height = ghb_settings_get_int(settings, "source_height"); g_string_append_printf(str, |