winemp3: Clear stream buffers when the stream is reset

Chris Robinson chris.kcat at gmail.com
Tue Mar 27 23:58:32 CDT 2007


-------------- next part --------------
From 40c6d25e1450b29147893e8ed91e62b5c8e6769a Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat at gmail.com>
Date: Tue, 27 Mar 2007 21:47:09 -0700
Subject: [PATCH] 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);
 }
 
 /***********************************************************************
-- 
1.4.4.4



More information about the wine-patches mailing list