Skip to content
Snippets Groups Projects
Commit df77a6da authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

Make the VIDIOCMCAPTURE ioctl error message consistent with the other ones.

Originally committed as revision 16361 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent faf67322
No related branches found
No related tags found
No related merge requests found
...@@ -217,7 +217,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -217,7 +217,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
if (ioctl(video_fd, VIDIOCMCAPTURE, &s->gb_buf) < 0) { if (ioctl(video_fd, VIDIOCMCAPTURE, &s->gb_buf) < 0) {
if (errno != EAGAIN) { if (errno != EAGAIN) {
fail1: fail1:
av_log(s1, AV_LOG_ERROR, "Fatal: grab device does not support suitable format\n"); av_log(s1, AV_LOG_ERROR, "VIDIOCMCAPTURE: %s\n", strerror(errno));
} else { } else {
av_log(s1, AV_LOG_ERROR, "Fatal: grab device does not receive any video signal\n"); av_log(s1, AV_LOG_ERROR, "Fatal: grab device does not receive any video signal\n");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment