Chris Robinson : quartz: Break processing loop when shutting down.
Module: wine Branch: master Commit: 4a68b33029137f08c8535db581a86ae37044a799 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4a68b33029137f08c8535db581... Author: Chris Robinson <chris.kcat(a)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);
participants (1)
-
Alexandre Julliard