From d2b682c271051a9eeb55cf52553c20d1a6a9edaf Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 16 Apr 2014 16:40:02 +0100 Subject: [PATCH] audiofx: fix comparison of delta time to a threshold Coverity 206055 --- gst/audiofx/audiofxbasefirfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audiofx/audiofxbasefirfilter.c b/gst/audiofx/audiofxbasefirfilter.c index ca9e01ab5d..dd3d3a02fb 100644 --- a/gst/audiofx/audiofxbasefirfilter.c +++ b/gst/audiofx/audiofxbasefirfilter.c @@ -831,7 +831,7 @@ gst_audio_fx_base_fir_filter_transform (GstBaseTransform * base, if (GST_BUFFER_IS_DISCONT (inbuf) || (GST_CLOCK_TIME_IS_VALID (expected_timestamp) && (ABS (GST_CLOCK_DIFF (timestamp, - expected_timestamp) > 5 * GST_MSECOND)))) { + expected_timestamp)) > 5 * GST_MSECOND))) { GST_DEBUG_OBJECT (self, "Discontinuity detected - flushing"); if (GST_CLOCK_TIME_IS_VALID (expected_timestamp)) gst_audio_fx_base_fir_filter_push_residue (self);