webrtcdsp: We now fail if there is no echo probe
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 29 Jun 2016 19:55:19 +0000 (15:55 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 30 Jun 2016 13:27:03 +0000 (09:27 -0400)
When echo cancel is enabled, we now fail the pipeline if there is
not echo probe. For this reason there is no need to check if probe
pointer is set anymore.

ext/webrtcdsp/gstwebrtcdsp.cpp

index 2f87f58..f8f086d 100644 (file)
@@ -311,7 +311,7 @@ gst_webrtc_dsp_analyze_reverse_stream (GstWebrtcDsp * self)
   gint err;
 
   GST_OBJECT_LOCK (self);
-  if (self->echo_cancel && self->probe)
+  if (self->echo_cancel)
     probe = GST_WEBRTC_ECHO_PROBE (g_object_ref (self->probe));
   GST_OBJECT_UNLOCK (self);