[asterisk-commits] seanbright: branch 10 r330204 - in /branches/10: ./ formats/format_wav.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 29 11:58:44 CDT 2011


Author: seanbright
Date: Fri Jul 29 11:58:40 2011
New Revision: 330204

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=330204
Log:
Merged revisions 330203 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r330203 | seanbright | 2011-07-29 12:58:08 -0400 (Fri, 29 Jul 2011) | 2 lines
  
  Only write to wav files that were opened to be written to.
........

Modified:
    branches/10/   (props changed)
    branches/10/formats/format_wav.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/formats/format_wav.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/formats/format_wav.c?view=diff&rev=330204&r1=330203&r2=330204
==============================================================================
--- branches/10/formats/format_wav.c (original)
+++ branches/10/formats/format_wav.c Fri Jul 29 11:58:40 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