mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Merge pull request #434 from taka-no-me:fix_parallel_writer_test
This commit is contained in:
commit
bf575ba7fb
@ -241,7 +241,9 @@ public:
|
|||||||
|
|
||||||
virtual void operator() (const Range& range) const
|
virtual void operator() (const Range& range) const
|
||||||
{
|
{
|
||||||
CV_Assert((range.start + 1) == range.end);
|
if((range.start + 1) != range.end)
|
||||||
|
return;
|
||||||
|
|
||||||
VideoWriter* writer = writers->operator[](range.start);
|
VideoWriter* writer = writers->operator[](range.start);
|
||||||
CV_Assert(writer != NULL);
|
CV_Assert(writer != NULL);
|
||||||
CV_Assert(writer->isOpened());
|
CV_Assert(writer->isOpened());
|
||||||
@ -303,7 +305,9 @@ public:
|
|||||||
|
|
||||||
virtual void operator() (const Range& range) const
|
virtual void operator() (const Range& range) const
|
||||||
{
|
{
|
||||||
CV_Assert(range.start + 1 == range.end);
|
if((range.start + 1) != range.end)
|
||||||
|
return;
|
||||||
|
|
||||||
VideoCapture* capture = readers->operator[](range.start);
|
VideoCapture* capture = readers->operator[](range.start);
|
||||||
CV_Assert(capture != NULL);
|
CV_Assert(capture != NULL);
|
||||||
CV_Assert(capture->isOpened());
|
CV_Assert(capture->isOpened());
|
||||||
|
Loading…
Reference in New Issue
Block a user