[empathy] audio-sink: check if sink implements the GstStreamVolume interface



commit 4c885dc6363f2eea8a23611a994ce8a88d4675be
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Aug 15 15:19:10 2011 +0200

    audio-sink: check if sink implements the GstStreamVolume interface

 src/empathy-audio-sink.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-audio-sink.c b/src/empathy-audio-sink.c
index 5969ea5..3d4496c 100644
--- a/src/empathy-audio-sink.c
+++ b/src/empathy-audio-sink.c
@@ -23,6 +23,8 @@
 #include <stdlib.h>
 
 #include <gst/audio/audio.h>
+#include <gst/interfaces/streamvolume.h>
+
 #include <telepathy-glib/telepathy-glib.h>
 
 #include <libempathy-gtk/empathy-call-utils.h>
@@ -154,8 +156,7 @@ check_volume_support (EmpathyGstAudioSink *self)
 {
   gchar *name;
 
-  if (g_object_class_find_property (G_OBJECT_GET_CLASS (self->priv->sink),
-        "volume"))
+  if (GST_IS_STREAM_VOLUME (self->priv->sink))
     return TRUE;
 
   name = gst_element_get_name (self->priv->sink);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]