[asterisk-addons-commits] seanbright: branch 1.6.0 r1084 - /branches/1.6.0/formats/format_mp3.c
SVN commits to the Asterisk addons project
asterisk-addons-commits at lists.digium.com
Wed Jan 6 09:38:28 CST 2010
Author: seanbright
Date: Wed Jan 6 09:38:24 2010
New Revision: 1084
URL: http://svnview.digium.com/svn/asterisk-addons?view=rev&rev=1084
Log:
Fix reading samples from format_mp3 after ast_seekstream/ast_tellstream.
There is a bug when using ast_seekstream/ast_tellstream with format_mp3 in that
the file read position is not reset before attempting to read samples. So when
we seek to determine the maximum size of the file (as in res_agi's STREAM FILE)
we weren't then resetting the file pointer so that we could properly read
samples. This patch addresses that (in a similar manner to format_wav.c).
(closes issue #15224)
Reported by: rbd
Patches:
20091230_addons_1.4_issue15224.diff uploaded by seanbright (license 71)
Tested by: rbd, seanbright
Review: https://reviewboard.asterisk.org/r/453
Modified:
branches/1.6.0/formats/format_mp3.c
Modified: branches/1.6.0/formats/format_mp3.c
URL: http://svnview.digium.com/svn/asterisk-addons/branches/1.6.0/formats/format_mp3.c?view=diff&rev=1084&r1=1083&r2=1084
==============================================================================
--- branches/1.6.0/formats/format_mp3.c (original)
+++ branches/1.6.0/formats/format_mp3.c Wed Jan 6 09:38:24 2010
@@ -264,7 +264,7 @@
}
p->seek = offset;
- return p->seek;
+ return fseek(s->f, offset, SEEK_SET);
}
More information about the asterisk-addons-commits
mailing list