[svn-commits] russell: branch russell/chan_console r95337 - /team/russell/chan_console/chan...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Dec 28 21:04:55 CST 2007


Author: russell
Date: Fri Dec 28 21:04:54 2007
New Revision: 95337

URL: http://svn.digium.com/view/asterisk?view=rev&rev=95337
Log:
- list console_video as a todo item
- actually init/destroy the pvt mutex

Modified:
    team/russell/chan_console/channels/chan_console.c

Modified: team/russell/chan_console/channels/chan_console.c
URL: http://svn.digium.com/view/asterisk/team/russell/chan_console/channels/chan_console.c?view=diff&rev=95337&r1=95336&r2=95337
==============================================================================
--- team/russell/chan_console/channels/chan_console.c (original)
+++ team/russell/chan_console/channels/chan_console.c Fri Dec 28 21:04:54 2007
@@ -42,6 +42,7 @@
  * transfer CLI command
  * boost CLI command and .conf option
  *
+ * console_video support
  *
  * TODO
  * \todo Convert the handling of playing sounds to active channels to use the
@@ -1043,6 +1044,8 @@
 	ast_cli_unregister_multiple(cli_console, sizeof(cli_console) / sizeof(cli_console[0]));
 
 	ast_string_field_free_memory(pvt);
+	
+	ast_mutex_destroy(&pvt->lock);
 	ast_cond_destroy(&pvt->cond);
 
 	return 0;
@@ -1053,6 +1056,7 @@
 	PaError res;
 	struct console_pvt *pvt = &console_pvt;
 
+	ast_mutex_init(&pvt->lock);
 	ast_cond_init(&pvt->cond, NULL);
 
 	if (load_config(0))
@@ -1082,6 +1086,7 @@
 return_error_pa_init:
 	Pa_Terminate();
 return_error:
+	ast_mutex_destroy(&pvt->lock);
 	ast_cond_destroy(&pvt->cond);
 
 	return AST_MODULE_LOAD_DECLINE;




More information about the svn-commits mailing list