winemp3.acm: mpg123_getformat must be called on MPG123_NEW_FORMAT errors for libmpg12...
authorLoïc Hoguin <essen@dev-extend.eu>
Mon, 28 Dec 2009 17:17:24 +0000 (18:17 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 30 Dec 2009 15:14:48 +0000 (16:14 +0100)
commit05a258b2c9d20cfdec9d329a692f8a02204f5905
tree9df48b8d44fcfbff356901808000ddba03e9de54
parent2d0b2433c20040c9a56b7f867d192ce414c6d229
winemp3.acm: mpg123_getformat must be called on MPG123_NEW_FORMAT errors for libmpg123 < 1.8.0.

The documentation for libmpg123 clearly state that mpg123_getformat MUST
be called if an error MPG123_NEW_FORMAT is returned, for libmpg123 < 1.8.0.
On versions above that, the call is optional. The patch make sure to call
that function all the time (instead of just when trace is activated) so
that mp3 works in Morrowind and others.
dlls/winemp3.acm/mpegl3.c