707615c61c
way of extracting the offset from them, which is all that is needed in this case. Just use fseeko/ftello.
15 lines
494 B
Text
15 lines
494 B
Text
$NetBSD: patch-as,v 1.1 2012/02/24 18:36:48 christos Exp $
|
|
|
|
--- player/plugin/audio/mad/mp3_file.cpp.orig 2004-12-22 14:47:50.000000000 -0500
|
|
+++ player/plugin/audio/mad/mp3_file.cpp 2012-02-24 13:07:19.000000000 -0500
|
|
@@ -384,9 +384,7 @@
|
|
mp3->m_framecount = fpos->frames;
|
|
mp3->m_buffer_on = 0;
|
|
mp3->m_buffer_size = 0;
|
|
- fpos_t pos;
|
|
- VAR_TO_FPOS(pos, fpos->file_position);
|
|
- fsetpos(mp3->m_ifile, &pos);
|
|
+ fseeko(mp3->m_ifile, &fpos->file_position, SEEK_SET);
|
|
return 0;
|
|
}
|
|
|