aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-15 21:19:10 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-15 21:19:10 +0800
commit4c885dc6363f2eea8a23611a994ce8a88d4675be (patch)
treea29cbeabca87199d5702928ec8e595a9611d51db
parentf30d87c84aa426407521c619702277de754e4bb5 (diff)
downloadgsoc2013-empathy-4c885dc6363f2eea8a23611a994ce8a88d4675be.tar
gsoc2013-empathy-4c885dc6363f2eea8a23611a994ce8a88d4675be.tar.gz
gsoc2013-empathy-4c885dc6363f2eea8a23611a994ce8a88d4675be.tar.bz2
gsoc2013-empathy-4c885dc6363f2eea8a23611a994ce8a88d4675be.tar.lz
gsoc2013-empathy-4c885dc6363f2eea8a23611a994ce8a88d4675be.tar.xz
gsoc2013-empathy-4c885dc6363f2eea8a23611a994ce8a88d4675be.tar.zst
gsoc2013-empathy-4c885dc6363f2eea8a23611a994ce8a88d4675be.zip
audio-sink: check if sink implements the GstStreamVolume interface
-rw-r--r--src/empathy-audio-sink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/empathy-audio-sink.c b/src/empathy-audio-sink.c
index 5969ea509..3d4496cd1 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);