mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 05:52:37 +00:00
videorate: Fix incorrect drop value when drop_only is true
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4052>
This commit is contained in:
parent
49c9f31803
commit
631c72b219
1 changed files with 2 additions and 0 deletions
|
@ -1776,6 +1776,8 @@ gst_video_rate_transform_ip (GstBaseTransform * trans, GstBuffer * buffer)
|
||||||
res = r;
|
res = r;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
videorate->drop++;
|
||||||
}
|
}
|
||||||
/* No need to keep the buffer around for longer */
|
/* No need to keep the buffer around for longer */
|
||||||
gst_buffer_replace (&videorate->prevbuf, NULL);
|
gst_buffer_replace (&videorate->prevbuf, NULL);
|
||||||
|
|
Loading…
Reference in a new issue