diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-15 17:23:35 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-15 20:38:12 +0800 |
commit | be5274444c54eb5c529e592d130e362fd1728b4d (patch) | |
tree | 3bc8d766c10532db66761b963864b2c379980fa2 /libempathy-gtk/empathy-call-utils.c | |
parent | 7e9166e6711d15a28bb679a1aeed3223134f2388 (diff) | |
download | gsoc2013-empathy-be5274444c54eb5c529e592d130e362fd1728b4d.tar gsoc2013-empathy-be5274444c54eb5c529e592d130e362fd1728b4d.tar.gz gsoc2013-empathy-be5274444c54eb5c529e592d130e362fd1728b4d.tar.bz2 gsoc2013-empathy-be5274444c54eb5c529e592d130e362fd1728b4d.tar.lz gsoc2013-empathy-be5274444c54eb5c529e592d130e362fd1728b4d.tar.xz gsoc2013-empathy-be5274444c54eb5c529e592d130e362fd1728b4d.tar.zst gsoc2013-empathy-be5274444c54eb5c529e592d130e362fd1728b4d.zip |
Use gst_parse_bin_from_description() when EMPATHY_AUDIO_* vars are set
Also factor out empathy_call_set_stream_properties().
Diffstat (limited to 'libempathy-gtk/empathy-call-utils.c')
-rw-r--r-- | libempathy-gtk/empathy-call-utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-call-utils.c b/libempathy-gtk/empathy-call-utils.c index 2991784f1..333d90267 100644 --- a/libempathy-gtk/empathy-call-utils.c +++ b/libempathy-gtk/empathy-call-utils.c @@ -192,3 +192,14 @@ empathy_call_new_with_streams (const gchar *contact, g_hash_table_unref (streamed_media_request); g_object_unref (call_req); } + +void +empathy_call_set_stream_properties (GstElement *element) +{ + GstStructure *props; + + props = gst_structure_from_string ( + "props,media.role=phone", NULL); + g_object_set (element, "stream-properties", props, NULL); + gst_structure_free (props); +} |