From 96970fe33b3372329e0980dd5411433bf73f3296 Mon Sep 17 00:00:00 2001 From: Jochen Henneberg Date: Fri, 7 Mar 2025 09:06:18 +0100 Subject: [PATCH] camerabin: Ensure that test record pipeline does not see caps change Depending on the system load the test 'video_capture_with_tags' may fail or not. Reason is that 'videotestsrc' may emit a buffer before the final caps negotiation on the recording pipeline has happened after dynamic linking. In that case there would be a caps change and because videorate does no longer drop old buffers and caps on change but pushes duplicates if required qtmux will notice a caps change and fail to link. The problem is a synchronization problem in 'camerabin' which became obvious with the changed behaviour of 'videorate'. Part-of: --- subprojects/gst-plugins-bad/tests/check/elements/camerabin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/tests/check/elements/camerabin.c b/subprojects/gst-plugins-bad/tests/check/elements/camerabin.c index 664e71022c..8d52d0f666 100644 --- a/subprojects/gst-plugins-bad/tests/check/elements/camerabin.c +++ b/subprojects/gst-plugins-bad/tests/check/elements/camerabin.c @@ -1470,6 +1470,10 @@ GST_START_TEST (test_video_capture_with_tags) g_object_set (camera, "video-profile", profile, NULL); gst_encoding_profile_unref (profile); + + caps = gst_caps_from_string ("video/x-raw, format=(string)Y444"); + g_object_set (camera, "video-capture-caps", caps, NULL); + gst_caps_unref (caps); } if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) ==