1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

Merge pull request #28946 from mshabunin:fix-gst-ubuntu26

videoio: workaround GStreamer tests on Ubuntu 26
This commit is contained in:
Alexander Smorkalov
2026-05-06 15:31:01 +03:00
committed by GitHub
+4 -1
View File
@@ -335,7 +335,10 @@ public:
// Workaround for some gstreamer pipelines
if (apiPref == CAP_GSTREAMER)
{
expected_frame_count.start -= 1;
expected_frame_count.end += 1;
}
ASSERT_LE(expected_frame_count.start, actual);
ASSERT_GE(expected_frame_count.end, actual);
@@ -917,7 +920,7 @@ TEST_P(videowriter_acceleration, write)
throw SkipTestException(cv::String("Backend is not available/disabled: ") + backend_name);
#ifdef __linux__
if (cvtest::skipUnstableTests && backend == CAP_GSTREAMER &&
(extension == "mkv") && (codecid == "MPEG"))
(extension == "mkv") && (codecid == "MPEG" || codecid == "H264"))
{
throw SkipTestException("Unstable GSTREAMER test");
}