From 033ce9b20d8e156f83419ec0e5ce5ae95d32a55b Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 10 Apr 2014 15:36:15 +0100 Subject: [PATCH] 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 --- gst/videorate/gstvideorate.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index c5c093e537..2c17ba4bc0 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -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);