Commit a92e3dcd authored by Alexander Reshetnikov's avatar Alexander Reshetnikov

Updated positioning test (removed frame reading)

parent 5c0f2f8e
...@@ -156,7 +156,7 @@ void CV_VideoPositioningTest::run_test(int method) ...@@ -156,7 +156,7 @@ void CV_VideoPositioningTest::run_test(int method)
cvSetCaptureProperty(cap, CV_CAP_PROP_POS_FRAMES, idx.at(j)); cvSetCaptureProperty(cap, CV_CAP_PROP_POS_FRAMES, idx.at(j));
IplImage* frame = cvRetrieveFrame(cap); /* IplImage* frame = cvRetrieveFrame(cap);
if (!frame) if (!frame)
{ {
...@@ -168,7 +168,7 @@ void CV_VideoPositioningTest::run_test(int method) ...@@ -168,7 +168,7 @@ void CV_VideoPositioningTest::run_test(int method)
ts->printf(cvtest::TS::LOG, "\nIteration: %d\n\nError: cannot read a frame with index %d.\n", j, idx.at(j)); ts->printf(cvtest::TS::LOG, "\nIteration: %d\n\nError: cannot read a frame with index %d.\n", j, idx.at(j));
ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION);
flag = !flag; flag = !flag;
} } */
int val = (int)cvGetCaptureProperty(cap, CV_CAP_PROP_POS_FRAMES); int val = (int)cvGetCaptureProperty(cap, CV_CAP_PROP_POS_FRAMES);
......
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