pidgin/plugins/vvconfig.c

branch
media
changeset 38948
7804140b50b5
parent 38258
9a6551eba09c
child 40499
2320cf8d228a
--- a/pidgin/plugins/vvconfig.c	Thu Mar 22 22:54:56 2018 +0000
+++ b/pidgin/plugins/vvconfig.c	Thu Mar 22 23:02:12 2018 +0000
@@ -665,7 +665,10 @@
 			GstElement *valve;
 
 			percent = gst_msg_db_to_percent(msg, "rms");
-			gtk_progress_bar_set_fraction(ctx->level, percent * 5);
+			percent *= 5;
+			if (percent > 1.0)
+				percent = 1.0;
+			gtk_progress_bar_set_fraction(ctx->level, percent);
 
 			percent = gst_msg_db_to_percent(msg, "decay");
 			threshold = gtk_range_get_value(ctx->threshold) / 100.0;

mercurial