audiofx: fix comparison of delta time to a threshold
Coverity 206055
This commit is contained in:
parent
7ebfdbeaf8
commit
d2b682c271
@ -831,7 +831,7 @@ gst_audio_fx_base_fir_filter_transform (GstBaseTransform * base,
|
|||||||
if (GST_BUFFER_IS_DISCONT (inbuf)
|
if (GST_BUFFER_IS_DISCONT (inbuf)
|
||||||
|| (GST_CLOCK_TIME_IS_VALID (expected_timestamp)
|
|| (GST_CLOCK_TIME_IS_VALID (expected_timestamp)
|
||||||
&& (ABS (GST_CLOCK_DIFF (timestamp,
|
&& (ABS (GST_CLOCK_DIFF (timestamp,
|
||||||
expected_timestamp) > 5 * GST_MSECOND)))) {
|
expected_timestamp)) > 5 * GST_MSECOND))) {
|
||||||
GST_DEBUG_OBJECT (self, "Discontinuity detected - flushing");
|
GST_DEBUG_OBJECT (self, "Discontinuity detected - flushing");
|
||||||
if (GST_CLOCK_TIME_IS_VALID (expected_timestamp))
|
if (GST_CLOCK_TIME_IS_VALID (expected_timestamp))
|
||||||
gst_audio_fx_base_fir_filter_push_residue (self);
|
gst_audio_fx_base_fir_filter_push_residue (self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user