[asterisk-commits] file: branch 1.6.1 r164314 - in /branches/1.6.1: ./ main/file.c

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


Author: file
Date: Mon Dec 15 11:26:42 2008
New Revision: 164314

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164314
Log:
Merged revisions 164312 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164312 | file | 2008-12-15 13:24:28 -0400 (Mon, 15 Dec 2008) | 4 lines
  
  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:
    branches/1.6.1/   (props changed)
    branches/1.6.1/main/file.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/main/file.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/main/file.c?view=diff&rev=164314&r1=164313&r2=164314
==============================================================================
--- branches/1.6.1/main/file.c (original)
+++ branches/1.6.1/main/file.c Mon Dec 15 11:26:42 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