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:
Vincent Penquerc'h 2014-04-10 15:36:15 +01:00 committed by Luis de Bethencourt
parent 08734e7598
commit 033ce9b20d

View file

@ -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);