|Summary:||ASTERISK-18994: playback of file format without seeking is broken|
|Reporter:||Timo Teräs (fabled)||Labels:|
|Date Opened:||2011-12-08 08:22:43.000-0600||Date Closed:||2012-01-06 09:56:19.000-0600|
|Environment:||Attachments:||( 0) fix-file-seek.patch|
|Description:||main/file.c:ast_streamfile() does seeking unconditionally on files. This breaks file formats that do not support seeking. This is a regression and apparently broke in r158062 (fixing issue #12929).|
The file formats that do not support seeking are: OGG/Vorbis, G.723, G.726, G.729, H.263, H.264 and my upcoming OGG/Speex.
Perhaps the core test should use ftell() to get old offset, do fseek() test, and use regular fseek() to resume where we where.
|Comments:||By: Timo Teräs (fabled) 2011-12-09 03:37:15.351-0600|
By: Timo Teräs (fabled) 2011-12-15 00:57:53.702-0600
Looks like Mantis and JIRA IDs do not match. The bug I was referring is Mantis ID 12929 which appears to have been remapped as ASTERISK-12260
By: Kinsey Moore (kmoore) 2012-01-05 16:22:20.129-0600
Patch committed with a tweak. Verified that the tweaked patch also corrected the problem.