From b69fb509a515d69f1da0655866dff2c37a3a34cb Mon Sep 17 00:00:00 2001 From: hackbard Date: Sun, 3 Nov 2002 03:29:55 +0000 Subject: [PATCH] -- --- webcam.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); + } + + -- 2.39.2