]> www.hackdaworld.org Git - my-code/ivac.git/commitdiff
--
authorhackbard <hackbard>
Sun, 3 Nov 2002 03:29:55 +0000 (03:29 +0000)
committerhackbard <hackbard>
Sun, 3 Nov 2002 03:29:55 +0000 (03:29 +0000)
webcam.c

index dfcfa654d68ec8f2c8b23f77a696833424198602..3c5e7a8c50c25df77b8d64af73857ef3bede6b94 100644 (file)
--- a/webcam.c
+++ b/webcam.c
@@ -21,3 +21,14 @@ int main(int argc,char **argv) {
 
 
  display=XOpenDisplay(NULL);
+ if(!display) {
+  printf("cannot open display\n");
+  exit(1);
+ }
+
+ if (minirg_init(display)) {
+  printf("minirg init process failed\n");
+  exit(1);
+ }
+