summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-02-23 23:15:18 +0000
committerjstebbins <[email protected]>2014-02-23 23:15:18 +0000
commitebd9533599ce8cedca9f11efde75f60ca5141b66 (patch)
tree1dc15fc5db090fd536a73ee0de073fc79810642e /gtk
parent2ed82f3a4cf8251f8cbebeaad70b4b125f7e70a5 (diff)
LinGui: use hb_video_quality_get_name()
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6074 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c31
1 files changed, 13 insertions, 18 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index edda75d6a..08c273251 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -4924,37 +4924,32 @@ G_MODULE_EXPORT gchar*
format_vquality_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud)
{
gint vcodec;
+ const char *vqname;
+
vcodec = ghb_settings_video_encoder_codec(ud->settings, "VideoEncoder");
+ vqname = hb_video_quality_get_name(vcodec);
switch (vcodec)
{
- case HB_VCODEC_X264:
- {
- if (val == 0.0)
- {
- return g_strdup_printf(_("RF: %.4g (Warning: lossless)"), val);
- }
- else
- {
- return g_strdup_printf("RF: %.4g", val);
- }
- } break;
-
case HB_VCODEC_FFMPEG_MPEG4:
case HB_VCODEC_FFMPEG_MPEG2:
- {
- return g_strdup_printf("QP: %d", (int)val);
- } break;
-
case HB_VCODEC_THEORA:
{
- return g_strdup_printf("QP: %d", (int)val);
+ return g_strdup_printf("%s: %d", vqname, (int)val);
} break;
+ case HB_VCODEC_X264:
+ {
+ if (val == 0.0)
+ {
+ return g_strdup_printf(_("%s: %.4g (Warning: lossless)"),
+ vqname, val);
+ }
+ } // Falls through to default
default:
{
+ return g_strdup_printf("%s: %.4g", vqname, val);
} break;
}
- return g_strdup_printf("QP: %.4g", val);
}
static void