[asterisk-commits] oej: branch 1.4 r63152 -
/branches/1.4/main/file.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun May 6 05:28:38 MST 2007
Author: oej
Date: Sun May 6 07:28:38 2007
New Revision: 63152
URL: http://svn.digium.com/view/asterisk?view=rev&rev=63152
Log:
Stop the video stream when you stop playback of all streams for a call
Modified:
branches/1.4/main/file.c
Modified: branches/1.4/main/file.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/file.c?view=diff&rev=63152&r1=63151&r2=63152
==============================================================================
--- branches/1.4/main/file.c (original)
+++ branches/1.4/main/file.c Sun May 6 07:28:38 2007
@@ -142,6 +142,11 @@
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);
+ }
+ /* Stop the video stream too */
+ if (tmp->vstream != NULL) {
+ ast_closestream(tmp->vstream);
+ tmp->vstream = NULL;
}
return 0;
}
More information about the asterisk-commits
mailing list