Chris Robinson : quartz: Break processing loop when shutting down.

Alexandre Julliard julliard at winehq.org
Tue Apr 1 06:51:23 CDT 2008


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

Author: Chris Robinson <chris.kcat at gmail.com>
Date:   Mon Mar 31 10:01:54 2008 -0700

quartz: Break processing loop when shutting down.

---

 dlls/quartz/mpegsplit.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/mpegsplit.c b/dlls/quartz/mpegsplit.c
index cb7528f..dca0042 100644
--- a/dlls/quartz/mpegsplit.c
+++ b/dlls/quartz/mpegsplit.c
@@ -363,8 +363,11 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample)
             IMediaSample_SetSyncPoint(This->pCurrentSample, TRUE);
         }
         hr = FillBuffer(This, &pbSrcStream, &cbSrcStream);
-        if (SUCCEEDED(hr))
+        if (SUCCEEDED(hr)) {
+            if (hr == S_FALSE)
+                break;
             continue;
+        }
 
 fail:
         FIXME("Failed with hres: %08x!\n", hr);




More information about the wine-cvs mailing list