[asterisk-commits] rizzo: branch rizzo/video_console r125738 - /team/rizzo/video_console/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 27 07:11:23 CDT 2008


Author: rizzo
Date: Fri Jun 27 07:11:22 2008
New Revision: 125738

URL: http://svn.digium.com/view/asterisk?view=rev&rev=125738
Log:
require a device name in /dev/ for grabber_x11


Modified:
    team/rizzo/video_console/channels/vgrabbers.c

Modified: team/rizzo/video_console/channels/vgrabbers.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_console/channels/vgrabbers.c?view=diff&rev=125738&r1=125737&r2=125738
==============================================================================
--- team/rizzo/video_console/channels/vgrabbers.c (original)
+++ team/rizzo/video_console/channels/vgrabbers.c Fri Jun 27 07:11:22 2008
@@ -206,6 +206,9 @@
 	struct grab_v4l1_desc *v;
 	struct fbuf_t *b;
 
+	/* name should be something under /dev/ */
+	if (strncmp(dev, "/dev/", 5)) 
+		return NULL;
 	fd = open(dev, O_RDONLY | O_NONBLOCK);
 	if (fd < 0) {
 		ast_log(LOG_WARNING, "error opening camera %s\n", dev);




More information about the asterisk-commits mailing list