Chris Robinson : winemp3: Clear stream buffers when the stream is reset.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 28 06:41:45 CDT 2007


Module: wine
Branch: master
Commit: 7d085d2cd4cd1d626944e8591232a328ae615773
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7d085d2cd4cd1d626944e8591232a328ae615773

Author: Chris Robinson <chris.kcat at gmail.com>
Date:   Tue Mar 27 21:47:09 2007 -0700

winemp3: Clear stream buffers when the stream is reset.

---

 dlls/winemp3.acm/mpegl3.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/winemp3.acm/mpegl3.c b/dlls/winemp3.acm/mpegl3.c
index 4c639e5..6d95a0b 100644
--- a/dlls/winemp3.acm/mpegl3.c
+++ b/dlls/winemp3.acm/mpegl3.c
@@ -374,6 +374,8 @@ static	LRESULT	MPEG3_FormatSuggest(PACMDRVFORMATSUGGEST adfs)
  */
 static	void	MPEG3_Reset(PACMDRVSTREAMINSTANCE adsi, AcmMpeg3Data* aad)
 {
+    ExitMP3(&aad->mp);
+    InitMP3(&aad->mp);
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list