From: hackbard Date: Sun, 3 Nov 2002 03:29:55 +0000 (+0000) Subject: -- X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b69fb509a515d69f1da0655866dff2c37a3a34cb;p=my-code%2Fivac.git -- --- diff --git a/webcam.c b/webcam.c index dfcfa65..3c5e7a8 100644 --- 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); + } + +