[asterisk-commits] file: trunk r164312 - /trunk/main/file.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 15 11:24:29 CST 2008


Author: file
Date: Mon Dec 15 11:24:28 2008
New Revision: 164312

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164312
Log:
Use ast_seekstream to return the file stream back to the beginning instead of directly seeking to zero. This is because some audio formats have headers at the front that need to be skipped, which will be done by the format module.
(closes issue #14079)
Reported by: elguero

Modified:
    trunk/main/file.c

Modified: trunk/main/file.c
URL: http://svn.digium.com/view/asterisk/trunk/main/file.c?view=diff&rev=164312&r1=164311&r2=164312
==============================================================================
--- trunk/main/file.c (original)
+++ trunk/main/file.c Mon Dec 15 11:24:28 2008
@@ -911,7 +911,7 @@
 	 * return the file had no data. */
 	seekattempt = fseek(fs->f, -1, SEEK_END);
 	if (!seekattempt)
-		fseek(fs->f, 0, SEEK_SET);
+		ast_seekstream(fs, 0, SEEK_SET);
 	else
 		return 0;
 




More information about the asterisk-commits mailing list