aboutsummaryrefslogtreecommitdiffstats
path: root/utils/qvidcap/capture-win-gl.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-08-17 13:06:46 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-08-17 13:06:46 +0200
commit8e18caca01fed71f04bea41c038bb168db3b20d4 (patch)
treef33d0173e2ececce7b7f4a38a5ccc7424db419e2 /utils/qvidcap/capture-win-gl.cpp
parent0f0477c27453981f8f75814863938792778987c0 (diff)
qvidcap: improve 'Unsupported format' messages
Show what the unsupport format is. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/qvidcap/capture-win-gl.cpp')
-rw-r--r--utils/qvidcap/capture-win-gl.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/qvidcap/capture-win-gl.cpp b/utils/qvidcap/capture-win-gl.cpp
index 9e022848..2e639d77 100644
--- a/utils/qvidcap/capture-win-gl.cpp
+++ b/utils/qvidcap/capture-win-gl.cpp
@@ -1062,7 +1062,9 @@ void CaptureGLWin::v4l2ExceptionEvent()
case V4L2_EVENT_SOURCE_CHANGE:
m_fd->g_fmt(fmt);
if (!setV4LFormat(fmt)) {
- fprintf(stderr, "Unsupported format\n");
+ fprintf(stderr, "Unsupported format: '%s' %s\n",
+ fcc2s(fmt.g_pixelformat()).c_str(),
+ pixfmt2s(fmt.g_pixelformat()).c_str());
exit(1);
}
updateOrigValues();
@@ -1091,7 +1093,9 @@ void CaptureGLWin::listenForNewConnection()
sock_fd = initSocket(m_port, fmt, pixelaspect);
if (setV4LFormat(fmt))
break;
- fprintf(stderr, "Unsupported format\n");
+ fprintf(stderr, "Unsupported format: '%s' %s\n",
+ fcc2s(fmt.g_pixelformat()).c_str(),
+ pixfmt2s(fmt.g_pixelformat()).c_str());
::close(sock_fd);
}
setPixelAspect(pixelaspect);

Privacy Policy