Commit 7e3d7677 authored by Alexander Stohr's avatar Alexander Stohr

not only print file-not-found as a warning but also print the name of the…

not only print file-not-found as a warning but also print the name of the problematic file and the uri used for the open attempt
parent 0d791189
...@@ -586,6 +586,7 @@ bool CvCapture_FFMPEG::open( const char* _filename ) ...@@ -586,6 +586,7 @@ bool CvCapture_FFMPEG::open( const char* _filename )
if (err < 0) if (err < 0)
{ {
CV_WARN("Error opening file"); CV_WARN("Error opening file");
CV_WARN(_filename);
goto exit_func; goto exit_func;
} }
err = err =
......
...@@ -601,6 +601,8 @@ bool CvCapture_GStreamer::open( int type, const char* filename ) ...@@ -601,6 +601,8 @@ bool CvCapture_GStreamer::open( int type, const char* filename )
else else
{ {
CV_WARN("GStreamer: Error opening file\n"); CV_WARN("GStreamer: Error opening file\n");
CV_WARN(filename);
CV_WARN(uri);
close(); close();
return false; return false;
} }
......
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