TRACE("Start\n");
- while (This->rtCurrent < This->rtStop && hr == S_OK && !This->stop_playback)
+ if (This->rtCurrent >= This->rtStop)
+ {
+ FIXME("Send an EndOfStream?\n");
+ }
+ else do
{
/* FIXME: to improve performance by quite a bit this should be changed
* so that one sample is processed while one sample is fetched. However,
if (pSample)
IMediaSample_Release(pSample);
- }
+ } while (This->rtCurrent < This->rtStop && hr == S_OK && !This->stop_playback);
CoUninitialize();
EnterCriticalSection(This->pin.pCritSec);