audiofx: fix comparison of delta time to a threshold
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 16 Apr 2014 15:40:02 +0000 (16:40 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 16 Apr 2014 16:44:50 +0000 (17:44 +0100)
Coverity 206055

gst/audiofx/audiofxbasefirfilter.c

index ca9e01a..dd3d3a0 100644 (file)
@@ -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);