diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-15 17:04:24 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-15 20:38:12 +0800 |
commit | 7e9166e6711d15a28bb679a1aeed3223134f2388 (patch) | |
tree | 706eb05ada9033547c199924b0868a2e03888c77 /src/empathy-audio-src.c | |
parent | 8f7a0a9cce1f8e08d4a50cc181d8a11ce3b48ec1 (diff) | |
download | gsoc2013-empathy-7e9166e6711d15a28bb679a1aeed3223134f2388.tar gsoc2013-empathy-7e9166e6711d15a28bb679a1aeed3223134f2388.tar.gz gsoc2013-empathy-7e9166e6711d15a28bb679a1aeed3223134f2388.tar.bz2 gsoc2013-empathy-7e9166e6711d15a28bb679a1aeed3223134f2388.tar.lz gsoc2013-empathy-7e9166e6711d15a28bb679a1aeed3223134f2388.tar.xz gsoc2013-empathy-7e9166e6711d15a28bb679a1aeed3223134f2388.tar.zst gsoc2013-empathy-7e9166e6711d15a28bb679a1aeed3223134f2388.zip |
Set stream-properties on GStreamer elements to set the media role
Diffstat (limited to 'src/empathy-audio-src.c')
-rw-r--r-- | src/empathy-audio-src.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c index 642628d7b..98ff24eca 100644 --- a/src/empathy-audio-src.c +++ b/src/empathy-audio-src.c @@ -394,6 +394,15 @@ empathy_audio_src_init (EmpathyGstAudioSrc *obj) priv->src = gst_element_factory_make (src_element, NULL); gst_bin_add (GST_BIN (obj), priv->src); + if (!tp_strdiff (src_element, "pulsesrc")) + { + GstStructure *props; + + props = gst_structure_from_string ("props,media.role=phone", NULL); + g_object_set (priv->src, "stream-properties", props, NULL); + gst_structure_free (props); + } + priv->volume = gst_element_factory_make ("volume", NULL); g_object_ref (priv->volume); |