diff options
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); +} |