diff options
author | jstebbins <[email protected]> | 2014-02-23 22:18:40 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-23 22:18:40 +0000 |
commit | f498cb2c881b6194272443b2b8f101acfa955f4c (patch) | |
tree | e3fa468fa6c88ee4d7169d930aed339a9b29c16d /gtk/src/queuehandler.c | |
parent | d9a66b9b9e441566b7dd8f160c1ceb4626513c9e (diff) |
LinGui: rework how hb samplerate is referenced from lingui
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6072 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r-- | gtk/src/queuehandler.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index e7f8788cd..55e712892 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -530,9 +530,8 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) } for (ii = 0; ii < count; ii++) { - gchar *quality = NULL, *samplerate, *track; + gchar *quality = NULL, *track; GValue *asettings; - gdouble sr; const hb_encoder_t *audio_encoder; asettings = ghb_array_get_nth(audio_list, ii); @@ -551,15 +550,8 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) quality = g_strdup_printf("Bitrate: %s", br); g_free(br); } - sr = ghb_settings_get_double(asettings, "AudioSamplerate"); - if ((int)sr == 0) - { - samplerate = g_strdup("Same As Source"); - } - else - { - samplerate = g_strdup_printf("%.4g", sr); - } + const hb_rate_t *sr; + sr = ghb_settings_audio_samplerate(asettings, "AudioSamplerate"); track = ghb_settings_get_string(asettings, "AudioTrackDescription"); const hb_mixdown_t *mix; mix = ghb_settings_mixdown(asettings, "AudioMixdown"); @@ -575,11 +567,10 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) { XPRINT( "<small>%s, Encoder: %s, Mixdown: %s, SampleRate: %s, %s</small>\n", - track, audio_encoder->name, mix->name, samplerate, quality); + track, audio_encoder->name, mix->name, sr->name, quality); } g_free(track); g_free(quality); - g_free(samplerate); } // Next line in the display (Subtitle) |