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
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@164314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2008-12-15 17:26:42 +00:00
parent d82a6cfaf4
commit 2277054f17

View File

@@ -911,7 +911,7 @@ int ast_streamfile(struct ast_channel *chan, const char *filename, const char *p
* 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;