fixed gpu perf tests (VideoCapture reopen)

pull/31/head^2
Vladislav Vinogradov 13 years ago
parent afe30d0f8a
commit 7591ee1688
  1. 2
      modules/gpu/perf/perf_video.cpp

@ -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
cap >> frame; cap >> frame;
if (frame.empty()) if (frame.empty())
{ {
cap.release();
cap.open(inputFile); cap.open(inputFile);
cap >> frame; cap >> frame;
} }

Loading…
Cancel
Save