Commit 7591ee16 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed gpu perf tests (VideoCapture reopen)

parent afe30d0f
...@@ -777,6 +777,7 @@ PERF_TEST_P(Video_Cn_MaxFeatures, Video_GMG, Combine(Values("gpu/video/768x576.a ...@@ -777,6 +777,7 @@ PERF_TEST_P(Video_Cn_MaxFeatures, Video_GMG, Combine(Values("gpu/video/768x576.a
cap >> frame; cap >> frame;
if (frame.empty()) if (frame.empty())
{ {
cap.release();
cap.open(inputFile); cap.open(inputFile);
cap >> frame; cap >> frame;
} }
...@@ -814,6 +815,7 @@ PERF_TEST_P(Video_Cn_MaxFeatures, Video_GMG, Combine(Values("gpu/video/768x576.a ...@@ -814,6 +815,7 @@ PERF_TEST_P(Video_Cn_MaxFeatures, Video_GMG, Combine(Values("gpu/video/768x576.a
cap >> frame; cap >> frame;
if (frame.empty()) if (frame.empty())
{ {
cap.release();
cap.open(inputFile); cap.open(inputFile);
cap >> frame; cap >> frame;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment