Skip to content

Commit 1393fd9

Browse files
committed
Merge pull request opencv#10989 from tomoaki0705:fixOldGstreamerTest
2 parents 3202062 + a9f3a7d commit 1393fd9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/videoio/test/test_video_io.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ class Videoio_Test_Base
112112

113113
{
114114
SCOPED_TRACE("consecutive read");
115+
if (apiPref == CAP_GSTREAMER)
116+
{
117+
// This workaround is for GStreamer 1.3.1.1 and older.
118+
// Old Gstreamer has a bug which handles the total duration 1 frame shorter
119+
// Old Gstreamer are used in Ubuntu 14.04, so the following code could be removed after it's EOL
120+
n_frames--;
121+
}
115122
for (int k = 0; k < n_frames; ++k)
116123
{
117124
checkFrameRead(k, cap);

0 commit comments

Comments
 (0)