From: <enl...@li...> - 2000-10-27 04:17:59
|
Enlightenment CVS committal Author : gilbertt Project : misc Module : camE Modified Files: webcam.c Log Message: hush the logging when BLOCK'ed =================================================================== RCS file: /cvsroot/enlightenment/misc/camE/webcam.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- webcam.c 2000/10/27 03:18:46 1.2 +++ webcam.c 2000/10/27 04:17:58 1.3 @@ -136,7 +136,8 @@ mmap(0, grab_size, PROT_READ | PROT_WRITE, MAP_SHARED, grab_fd, 0); } -Imlib_Image grab_one(int *width, int *height) +Imlib_Image +grab_one(int *width, int *height) { Imlib_Image im; int i = lag_reduce; @@ -198,8 +199,8 @@ time(&t); tm = localtime(&t); strftime(line, 254, grab_text, tm); - if(title_text) - strftime(title_line, 254, title_text, tm); + if (title_text) + strftime(title_line, 254, title_text, tm); msg = get_message(); if (msg) @@ -245,7 +246,8 @@ } } -Imlib_Image convert_rgb_to_imlib2(unsigned char *mem, int width, int height) +Imlib_Image +convert_rgb_to_imlib2(unsigned char *mem, int width, int height) { Imlib_Image im; DATA32 *data, *dest; @@ -525,12 +527,10 @@ log("running post upload action"); system(action_post_upload); } + log("sleeping"); } if (grab_delay > 0) - { - log("sleeping"); sleep(grab_delay); - } } return 0; } |