mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
videorate: remove dead code
Since the loops increasing count from 0 are always run at least once (if count < 1), count will always be at least one when compared to the drop/dup conditions. Coverity 1139674
This commit is contained in:
parent
08734e7598
commit
033ce9b20d
1 changed files with 0 additions and 4 deletions
|
@ -728,10 +728,6 @@ gst_video_rate_sink_event (GstBaseTransform * trans, GstEvent * event)
|
|||
videorate->dup += count - 1;
|
||||
if (!videorate->silent)
|
||||
gst_video_rate_notify_duplicate (videorate);
|
||||
} else if (count == 0) {
|
||||
videorate->drop++;
|
||||
if (!videorate->silent)
|
||||
gst_video_rate_notify_drop (videorate);
|
||||
}
|
||||
/* clean up for the new one; _chain will resume from the new start */
|
||||
gst_video_rate_swap_prev (videorate, NULL, 0);
|
||||
|
|
Loading…
Reference in a new issue