From fb8662eb5c64c9c25ef670a018174b74616b6a2a Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 22 Jun 2016 21:45:08 -0400 Subject: [PATCH] webrtdsp: Remove restriction on channels number Unlike 0.1, in 0.2 the reverse stream can have different number of channels. Remove the check that restrict it. --- ext/webrtcdsp/gstwebrtcdsp.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ext/webrtcdsp/gstwebrtcdsp.cpp b/ext/webrtcdsp/gstwebrtcdsp.cpp index a5ed2f189f..f17947bfe3 100644 --- a/ext/webrtcdsp/gstwebrtcdsp.cpp +++ b/ext/webrtcdsp/gstwebrtcdsp.cpp @@ -277,13 +277,11 @@ gst_webrtc_dsp_sync_reverse_stream (GstWebrtcDsp * self, return FALSE; } - if (self->info.rate != probe->info.rate - || self->info.channels != probe->info.channels) { + if (self->info.rate != probe->info.rate) { GST_WARNING_OBJECT (self, - "Echo Probe has rate %i and %i channels, while " - "the DSP is running at rate %i with %i channels, use a caps filter to " - "ensure those are the same.", probe->info.rate, probe->info.channels, - self->info.rate, self->info.channels); + "Echo Probe has rate %i while the DSP is running at rate %i, use a " + "caps filter to ensure those are the same.", + probe->info.rate, self->info.rate); return FALSE; }