/pidgin/main: bfa1b278192f: Fix sound level message processing.

Elliott Sales de Andrade qulogic at pidgin.im
Mon Nov 5 18:15:56 EST 2012


Changeset: bfa1b278192f92d518add537b9f0999b617373f5
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-09-09 04:03 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/bfa1b278192f

Description:

Fix sound level message processing.

diffstat:

 libpurple/media/backend-fs2.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (18 lines):

diff --git a/libpurple/media/backend-fs2.c b/libpurple/media/backend-fs2.c
--- a/libpurple/media/backend-fs2.c
+++ b/libpurple/media/backend-fs2.c
@@ -795,9 +795,12 @@ gst_msg_db_to_percent(GstMessage *msg, g
 	gdouble value_db;
 	gdouble percent;
 
-	list = gst_structure_get_value(
-				gst_message_get_structure(msg), value_name);
+	list = gst_structure_get_value(gst_message_get_structure(msg), value_name);
+#if GST_CHECK_VERSION(0,11,0)
+	value = g_value_array_get_nth(g_value_get_boxed(list), 0);
+#else
 	value = gst_value_list_get_value(list, 0);
+#endif
 	value_db = g_value_get_double(value);
 	percent = pow(10, value_db / 20);
 	return (percent > 1.0) ? 1.0 : percent;



More information about the Commits mailing list