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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 17 13:26:31 CDT 2007


Author: rizzo
Date: Mon Sep 17 13:26:30 2007
New Revision: 82626

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82626
Log:
add CLI support for videowidth and videoheight

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=82626&r1=82625&r2=82626
==============================================================================
--- team/rizzo/video_v2/channels/chan_oss.c (original)
+++ team/rizzo/video_v2/channels/chan_oss.c Mon Sep 17 13:26:30 2007
@@ -1113,7 +1113,9 @@
 
 static void store_config_core(struct chan_oss_pvt *o, const char *var, const char *value);
 
-/*! generic console command handler */
+/*! generic console command handler. Basically a wrapper for a subset
+ *  of config file options.
+ */
 static char *console_cmd(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
 	struct chan_oss_pvt *o = find_desc(oss_active);
@@ -1121,7 +1123,7 @@
 
 	switch (cmd) {
 	case CLI_INIT:
-		e->command = "console [videodevice|fps|bitrate]";
+		e->command = "console [videodevice|fps|bitrate|videowidth|videoheight]";
 		e->usage =
 			"Usage: console ...\n"
 			"       Generic handler for console commands.\n";
@@ -1144,6 +1146,10 @@
 		store_config_core(o, var, value);
 	if (!strcasecmp(var, "videodevice")) {
 		ast_cli(a->fd, "videodevice is [%s]\n", o->env.videodevice);
+	} else if (!strcasecmp(var, "videowidth")) {
+		ast_cli(a->fd, "videowidth is [%d]\n", o->env.w);
+	} else if (!strcasecmp(var, "videoheight")) {
+		ast_cli(a->fd, "videoheight is [%d]\n", o->env.h);
 	} else if (!strcasecmp(var, "bitrate")) {
 		ast_cli(a->fd, "bitrate is [%d]\n", o->env.bitrate);
 	} else if (!strcasecmp(var, "fps")) {




More information about the asterisk-commits mailing list