aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-audio-sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-audio-sink.c')
-rw-r--r--src/empathy-audio-sink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-audio-sink.c b/src/empathy-audio-sink.c
index e571b2426..f8b5d1c39 100644
--- a/src/empathy-audio-sink.c
+++ b/src/empathy-audio-sink.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <gst/audio/audio.h>
+#include <telepathy-glib/telepathy-glib.h>
#include "empathy-audio-sink.h"
@@ -231,6 +232,15 @@ empathy_audio_sink_request_new_pad (GstElement *element,
if (self->priv->sink == NULL)
goto error;
+ if (!tp_strdiff (sink_element, "pulsesink"))
+ {
+ GstStructure *props;
+
+ props = gst_structure_from_string ("props,media.role=phone", NULL);
+ g_object_set (self->priv->sink, "stream-properties", props, NULL);
+ gst_structure_free (props);
+ }
+
gst_bin_add (GST_BIN (bin), self->priv->sink);
if (!gst_element_link_many (audioconvert0, resample, audioconvert1,