[asterisk-commits] seanbright: branch 1.8 r330203 - /branches/1.8/formats/format_wav.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 29 11:58:11 CDT 2011
Author: seanbright
Date: Fri Jul 29 11:58:08 2011
New Revision: 330203
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=330203
Log:
Only write to wav files that were opened to be written to.
Modified:
branches/1.8/formats/format_wav.c
Modified: branches/1.8/formats/format_wav.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/formats/format_wav.c?view=diff&rev=330203&r1=330202&r2=330203
==============================================================================
--- branches/1.8/formats/format_wav.c (original)
+++ branches/1.8/formats/format_wav.c Fri Jul 29 11:58:08 2011
@@ -340,6 +340,10 @@
char zero = 0;
struct wav_desc *fs = (struct wav_desc *)s->_private;
+ if ((s->mode & O_RDONLY) == O_RDONLY) {
+ return;
+ }
+
if (s->filename) {
update_header(s->f);
}
More information about the asterisk-commits
mailing list