[asterisk-commits] trunk r24329 - /trunk/file.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue May 2 13:06:22 MST 2006
Author: bweschke
Date: Tue May 2 15:06:21 2006
New Revision: 24329
URL: http://svn.digium.com/view/asterisk?rev=24329&view=rev
Log:
Make certain ast_stopstream() sets the channel's stream members to NULL after closing them. #7067 (jcomellas)
Modified:
trunk/file.c
Modified: trunk/file.c
URL: http://svn.digium.com/view/asterisk/trunk/file.c?rev=24329&r1=24328&r2=24329&view=diff
==============================================================================
--- trunk/file.c (original)
+++ trunk/file.c Tue May 2 15:06:21 2006
@@ -143,6 +143,7 @@
/* Stop a running stream if there is one */
if (tmp->stream) {
ast_closestream(tmp->stream);
+ tmp->stream = NULL;
if (tmp->oldwriteformat && ast_set_write_format(tmp, tmp->oldwriteformat))
ast_log(LOG_WARNING, "Unable to restore format back to %d\n", tmp->oldwriteformat);
}
More information about the asterisk-commits
mailing list