videorate: Update QoS events taking into account our rate
authorThibault Saunier <tsaunier@igalia.com>
Fri, 29 May 2020 20:21:11 +0000 (16:21 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 1 Jun 2020 07:07:31 +0000 (07:07 +0000)
commit0c75ea0858c908802ace784feac034a569666af2
treea0cc3e0682ab7b253226141763f9de4d5be1bb3e
parent6499e2afa53ad0e12c2d9382f55917e6c55bca21
videorate: Update QoS events taking into account our rate

Otherwise there is a mismatch between the QoS values and what upstream
would expect, leading to too much buffer dropping in video decoders in
case rate < 1.0 or not enough buffer dropping in case rate > 1.0

Adding validate tests with and without decoders.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/679>
15 files changed:
gst/videorate/gstvideorate.c
tests/validate/meson.build
tests/validate/videorate/check-rate-prop.meta [new file with mode: 0644]
tests/validate/videorate/rate_0_5.validatetest [new file with mode: 0644]
tests/validate/videorate/rate_0_5/flow-expectations/log-videorate-sink-expected [new file with mode: 0644]
tests/validate/videorate/rate_0_5/flow-expectations/log-videorate-src-expected [new file with mode: 0644]
tests/validate/videorate/rate_0_5_with_decoder.validatetest [new file with mode: 0644]
tests/validate/videorate/rate_0_5_with_decoder/flow-expectations/log-videorate-sink-expected [new file with mode: 0644]
tests/validate/videorate/rate_0_5_with_decoder/flow-expectations/log-videorate-src-expected [new file with mode: 0644]
tests/validate/videorate/rate_2_0.validatetest [new file with mode: 0644]
tests/validate/videorate/rate_2_0/flow-expectations/log-videorate-sink-expected [new file with mode: 0644]
tests/validate/videorate/rate_2_0/flow-expectations/log-videorate-src-expected [new file with mode: 0644]
tests/validate/videorate/rate_2_0_with_decoder.validatetest [new file with mode: 0644]
tests/validate/videorate/rate_2_0_with_decoder/flow-expectations/log-videorate-sink-expected [new file with mode: 0644]
tests/validate/videorate/rate_2_0_with_decoder/flow-expectations/log-videorate-src-expected [new file with mode: 0644]