]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-call-utils.c
Don't turn on echo cancellation on the source if it's for raw conferences
[empathy.git] / libempathy-gtk / empathy-call-utils.c
index adf4987bad0e6b8197c38a97b0eadaf7b5e5b6b1..b6fe48d80600b1a7bd4a296adfee0e0ed3a2c7fb 100644 (file)
@@ -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",