summaryrefslogtreecommitdiff
path: root/cvg.c
diff options
context:
space:
mode:
Diffstat (limited to 'cvg.c')
-rw-r--r--cvg.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cvg.c b/cvg.c
index 1d43aba..c2d0cd7 100644
--- a/cvg.c
+++ b/cvg.c
@@ -3,6 +3,7 @@
#include <glib.h>
#include <cv.h>
#include <highgui.h>
+#include <errno.h>
struct cvg {
GtkWidget *drawing_area1;
@@ -419,3 +420,13 @@ main(int argc, char *argv[])
return 0;
}
+
+/* FIXME: Need to overload perror so that invalid OpenCV messages are hidden. */
+void
+perror(const char *s)
+{
+ if (strcmp("VIDIOC_QUERYMENU", s) == 0)
+ return;
+
+ fprintf(stderr, "%s: %s\n", s, strerror(errno));
+}