diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-call-utils.c | 7 | ||||
-rw-r--r-- | libempathy-gtk/empathy-call-utils.h | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-call-utils.c b/libempathy-gtk/empathy-call-utils.c index adf4987ba..b6fe48d80 100644 --- a/libempathy-gtk/empathy-call-utils.c +++ b/libempathy-gtk/empathy-call-utils.c @@ -250,15 +250,16 @@ empathy_call_new_with_streams (const gchar *contact, } void -empathy_call_set_stream_properties (GstElement *element) +empathy_call_set_stream_properties (GstElement *element, + gboolean echo_cancellation) { GstStructure *props; GSettings *gsettings_call; - gboolean echo_cancellation; gsettings_call = g_settings_new (EMPATHY_PREFS_CALL_SCHEMA); - echo_cancellation = g_settings_get_boolean (gsettings_call, + echo_cancellation = echo_cancellation && + g_settings_get_boolean (gsettings_call, EMPATHY_PREFS_CALL_ECHO_CANCELLATION); props = gst_structure_new ("props", diff --git a/libempathy-gtk/empathy-call-utils.h b/libempathy-gtk/empathy-call-utils.h index 87676161c..836103100 100644 --- a/libempathy-gtk/empathy-call-utils.h +++ b/libempathy-gtk/empathy-call-utils.h @@ -40,7 +40,8 @@ GHashTable * empathy_call_create_streamed_media_request (const gchar *contact, gboolean initial_audio, gboolean initial_video); -void empathy_call_set_stream_properties (GstElement *element); +void empathy_call_set_stream_properties (GstElement *element, + gboolean echo_cancellation); G_END_DECLS |