diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-06-20 08:25:08 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-06-20 08:25:08 +0200 |
commit | 13d308f8a7bdfcdd8bac2db3f2c6a9a7bc5e9db0 (patch) | |
tree | 2cf5af73df80767313dc1edee81109b61112bf2b | |
parent | b90d1b6bf846a97b260e01f0799f39ffb439ea6d (diff) | |
download | cv-13d308f8a7bdfcdd8bac2db3f2c6a9a7bc5e9db0.tar.gz cv-13d308f8a7bdfcdd8bac2db3f2c6a9a7bc5e9db0.tar.bz2 cv-13d308f8a7bdfcdd8bac2db3f2c6a9a7bc5e9db0.zip |
cvg: Add VIDIOC_QUERYMENU perror hack
-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)); +} |