[asterisk-commits] rizzo: branch rizzo/video_v2 r82677 - /team/rizzo/video_v2/channels/chan_oss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 17 15:18:25 CDT 2007


Author: rizzo
Date: Mon Sep 17 15:18:24 2007
New Revision: 82677

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82677
Log:
enable changing the oss device from the CLI

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

Modified: team/rizzo/video_v2/channels/chan_oss.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/channels/chan_oss.c?view=diff&rev=82677&r1=82676&r2=82677
==============================================================================
--- team/rizzo/video_v2/channels/chan_oss.c (original)
+++ team/rizzo/video_v2/channels/chan_oss.c Mon Sep 17 15:18:24 2007
@@ -1123,7 +1123,7 @@
 
 	switch (cmd) {
 	case CLI_INIT:
-		e->command = "console [videodevice|fps|bitrate|videowidth|videoheight]";
+		e->command = "console [device|videodevice|fps|bitrate|videowidth|videoheight]";
 		e->usage =
 			"Usage: console ...\n"
 			"       Generic handler for console commands.\n";
@@ -1154,6 +1154,8 @@
 		ast_cli(a->fd, "bitrate is [%d]\n", o->env.bitrate);
 	} else if (!strcasecmp(var, "fps")) {
 		ast_cli(a->fd, "fps is [%d]\n", o->env.fps);
+	} else if (!strcasecmp(var, "device")) {
+		ast_cli(a->fd, "device is [%s]\n", o->device);
 	}
 	return CLI_SUCCESS;
 




More information about the asterisk-commits mailing list