mirror of
https://github.com/reactos/wine.git
synced 2025-04-01 07:31:34 +00:00
winemp3.acm: Fixes compilation for older mpg123 library versions.
Thanks to Sebastian Lackner for the correct approach. Signed-off-by: Bruno Jesus <00cpxxx@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a9c51f4e8a
commit
bb036ae502
@ -249,12 +249,14 @@ static LRESULT MPEG3_StreamOpen(PACMDRVSTREAMINSTANCE adsi)
|
||||
aad->mh = mpg123_new(NULL,&err);
|
||||
mpg123_open_feed(aad->mh);
|
||||
|
||||
#if MPG123_API_VERSION >= 31 /* needed for MPG123_IGNORE_FRAMEINFO enum value */
|
||||
/* mpg123 may find a XING header in the mp3 and use that information
|
||||
* to ask for seeks in order to read specific frames in the file.
|
||||
* We cannot allow that since the caller application is feeding us.
|
||||
* This fixes problems for mp3 files encoded with LAME (bug 42361)
|
||||
*/
|
||||
mpg123_param(aad->mh, MPG123_ADD_FLAGS, MPG123_IGNORE_INFOFRAME, 0);
|
||||
#endif
|
||||
}
|
||||
/* no encoding yet
|
||||
else if (adsi->pwfxSrc->wFormatTag == WAVE_FORMAT_PCM &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user