webrtcdsp: We now fail if there is no echo probe

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.
This commit is contained in:
Nicolas Dufresne 2016-06-29 15:55:19 -04:00
parent 087bb0ed6a
commit e35e23b734

View 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);