[asterisk-commits] rizzo: branch rizzo/video_v2 r82495 - /team/rizzo/video_v2/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Sep 16 10:09:08 CDT 2007


Author: rizzo
Date: Sun Sep 16 10:09:08 2007
New Revision: 82495

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82495
Log:
- add a missing semicolon ;
- localize some V4L variables;

Modified:
    team/rizzo/video_v2/channels/console_video.c

Modified: team/rizzo/video_v2/channels/console_video.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/channels/console_video.c?view=diff&rev=82495&r1=82494&r2=82495
==============================================================================
--- team/rizzo/video_v2/channels/console_video.c (original)
+++ team/rizzo/video_v2/channels/console_video.c Sun Sep 16 10:09:08 2007
@@ -190,8 +190,6 @@
 {
 	int i;
 	const char *device = env->videodevice;
-	struct video_window vw = { 0 };	/* camera attributes */
-	struct video_picture vp;
 	struct video_out_desc *v = &env->out;
 
 	/* copy config from parent */
@@ -233,9 +231,12 @@
 		im->data,
 		im->bits_per_pixel,
 		im->red_mask, im->green_mask, im->blue_mask);
-	v->pix_fmt = PIX_FMT_RGB565
+	v->pix_fmt = PIX_FMT_RGB565;
 	v->fd = -2;
     } else {
+	struct video_window vw = { 0 };	/* camera attributes */
+	struct video_picture vp;
+
 	v->fd = open(device, O_RDONLY | O_NONBLOCK);
 	if (v->fd < 0) {
 		ast_log(LOG_WARNING, "error opening camera %s\n", device);




More information about the asterisk-commits mailing list