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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 25 11:46:50 CDT 2008


Author: rizzo
Date: Wed Jun 25 11:46:50 2008
New Revision: 125090

URL: http://svn.digium.com/view/asterisk?view=rev&rev=125090
Log:
Recognise a prefix of 'X11' as an x11-grabber device


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=125090&r1=125089&r2=125090
==============================================================================
--- team/rizzo/video_console/channels/vgrabbers.c (original)
+++ team/rizzo/video_console/channels/vgrabbers.c Wed Jun 25 11:46:50 2008
@@ -79,7 +79,8 @@
 	struct grab_x11_desc *v;
 	struct fbuf_t *b;
 
-	if (strcasecmp(name, "X11"))
+	/* all names starting with X11 identify this grabber */
+	if (strncasecmp(name, "X11", 3))
 		return NULL;	/* not us */
 	v = ast_calloc(1, sizeof(*v));
 	if (v == NULL)




More information about the asterisk-commits mailing list