OpenCV 3.1 VideoWriter::write(const Mat&) does not return its status.
Hello, I found it strange that the "VideoWriter::write(const Mat&)" function does not return its status (true/false).
I think that function should return an int to inform about the result of the call. (true (success) / false (fail))
The function declaration could be changed to: "virtual int write (const Mat &image)" instead of "virtual void write (const Mat &image)"
It would be easy to return the status because the source code inside write is using "cvWriteFrame(writer, &_img);" which returns an integer.
See definition and source here: