diff options
-rw-r--r-- | cvg.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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)); +} |