diff options
author | jstebbins <[email protected]> | 2011-10-17 18:16:27 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-10-17 18:16:27 +0000 |
commit | 2cb43119b880267ed84265c73d7c66cf90125659 (patch) | |
tree | 81f8187602f0c15f2e2697ed7f7fa2824c26c2af /gtk/src | |
parent | 1c0ae631e0898549b16b029e55e4526040872d5d (diff) |
LinGui: fix function parameters to GtkScaleButtons
Missing parameter caueses crash on Mandriva and probably others.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4296 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/audiohandler.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 2e12c1939..e77912fd3 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -865,7 +865,7 @@ char * ghb_format_quality( const char *prefix, int codec, double quality ) } G_MODULE_EXPORT void -quality_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) +quality_widget_changed_cb(GtkWidget *widget, gdouble quality, signal_user_data_t *ud) { GValue *asettings; @@ -876,7 +876,6 @@ quality_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) int dir; int codec = ghb_settings_combo_int(ud->settings, "AudioEncoderActual"); hb_get_audio_quality_limits(codec, &low, &high, &gran, &dir); - double quality = ghb_widget_double(widget); if (dir) { // Quality values are inverted @@ -898,7 +897,7 @@ quality_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) } G_MODULE_EXPORT void -drc_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) +drc_widget_changed_cb(GtkWidget *widget, gdouble drc, signal_user_data_t *ud) { GValue *asettings; @@ -907,7 +906,6 @@ drc_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) ghb_check_dependency(ud, widget, NULL); if (block_updates) return; - double drc = ghb_widget_double(widget); char *s_drc; if (drc < 0.99) s_drc = g_strdup("Off"); @@ -934,7 +932,7 @@ format_gain_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud) } G_MODULE_EXPORT void -gain_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) +gain_widget_changed_cb(GtkWidget *widget, gdouble gain, signal_user_data_t *ud) { GValue *asettings; @@ -944,12 +942,11 @@ gain_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) if (block_updates) return; asettings = get_selected_asettings(ud); - int gain = ghb_widget_int(widget); char *s_gain; if ( gain >= 21.0 ) s_gain = g_strdup_printf("*11*"); else - s_gain = g_strdup_printf("%ddB", gain); + s_gain = g_strdup_printf("%ddB", (int)gain); ghb_ui_update( ud, "AudioTrackGainValue", ghb_string_value(s_gain)); g_free(s_gain); |