mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 23:51:16 +08:00
Merge pull request #10989 from tomoaki0705:fixOldGstreamerTest
This commit is contained in:
commit
1393fd9e8e
@ -112,6 +112,13 @@ public:
|
|||||||
|
|
||||||
{
|
{
|
||||||
SCOPED_TRACE("consecutive read");
|
SCOPED_TRACE("consecutive read");
|
||||||
|
if (apiPref == CAP_GSTREAMER)
|
||||||
|
{
|
||||||
|
// This workaround is for GStreamer 1.3.1.1 and older.
|
||||||
|
// Old Gstreamer has a bug which handles the total duration 1 frame shorter
|
||||||
|
// Old Gstreamer are used in Ubuntu 14.04, so the following code could be removed after it's EOL
|
||||||
|
n_frames--;
|
||||||
|
}
|
||||||
for (int k = 0; k < n_frames; ++k)
|
for (int k = 0; k < n_frames; ++k)
|
||||||
{
|
{
|
||||||
checkFrameRead(k, cap);
|
checkFrameRead(k, cap);
|
||||||
|
Loading…
Reference in New Issue
Block a user