fixed gpu perf tests (VideoCapture reopen)

This commit is contained in:
Vladislav Vinogradov 2012-09-13 10:18:42 +04:00
parent afe30d0f8a
commit 7591ee1688

View File

@ -777,6 +777,7 @@ PERF_TEST_P(Video_Cn_MaxFeatures, Video_GMG, Combine(Values("gpu/video/768x576.a
cap >> frame;
if (frame.empty())
{
cap.release();
cap.open(inputFile);
cap >> frame;
}
@ -814,6 +815,7 @@ PERF_TEST_P(Video_Cn_MaxFeatures, Video_GMG, Combine(Values("gpu/video/768x576.a
cap >> frame;
if (frame.empty())
{
cap.release();
cap.open(inputFile);
cap >> frame;
}