From 968969353482b074e142bfd448fab7338da80b4d Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 27 Apr 2022 01:10:46 +0200 Subject: [PATCH] tests/onvif: don't push buffers outside segment segment->stop is exclusive, so in reverse playback mode we do not need to output a buffer at that position as it will simply get clipped in basesink. Part-of: --- subprojects/gst-rtsp-server/tests/check/gst/onvif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-rtsp-server/tests/check/gst/onvif.c b/subprojects/gst-rtsp-server/tests/check/gst/onvif.c index f33e50dc39..3d115a8ab2 100644 --- a/subprojects/gst-rtsp-server/tests/check/gst/onvif.c +++ b/subprojects/gst-rtsp-server/tests/check/gst/onvif.c @@ -290,7 +290,7 @@ test_src_do_seek (GstBaseSrc * bsrc, GstSegment * segment) if (src->segment->rate < 0) { guint64 n_frames = - ROUND_DOWN_TO_10 (gst_util_uint64_scale (src->segment->stop, 1000, + ROUND_DOWN_TO_10 (gst_util_uint64_scale (src->segment->stop - 1, 1000, GST_SECOND)); src->segment->position = n_frames * GST_MSECOND;