From 631c72b219f0f3e50e6c8a2e009a88c4b89b33d4 Mon Sep 17 00:00:00 2001 From: Hugo Svirak Date: Thu, 23 Feb 2023 09:58:54 +0000 Subject: [PATCH] videorate: Fix incorrect drop value when drop_only is true Part-of: --- subprojects/gst-plugins-base/gst/videorate/gstvideorate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/videorate/gstvideorate.c b/subprojects/gst-plugins-base/gst/videorate/gstvideorate.c index c41b6fa1a7..2a9f2c056a 100644 --- a/subprojects/gst-plugins-base/gst/videorate/gstvideorate.c +++ b/subprojects/gst-plugins-base/gst/videorate/gstvideorate.c @@ -1776,6 +1776,8 @@ gst_video_rate_transform_ip (GstBaseTransform * trans, GstBuffer * buffer) res = r; goto done; } + } else { + videorate->drop++; } /* No need to keep the buffer around for longer */ gst_buffer_replace (&videorate->prevbuf, NULL);