quartz: Reset time when rejecting sample in the mpeg splitter.

This commit is contained in:
Maarten Lankhorst 2008-05-09 16:38:29 -07:00 committed by Alexandre Julliard
parent 7d6e28c3bb
commit 98f0b5f479
1 changed files with 2 additions and 1 deletions

View File

@ -246,7 +246,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample,
MPEGSplitterImpl *This = (MPEGSplitterImpl*)iface;
BYTE *pbSrcStream;
DWORD cbSrcStream = 0;
REFERENCE_TIME tStart, tStop;
REFERENCE_TIME tStart, tStop, tAviStart = This->position;
Parser_OutputPin * pOutputPin;
HRESULT hr;
@ -280,6 +280,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample,
{
memcpy(This->header, pbSrcStream, 4);
This->Parser.pInputPin->rtCurrent = tStart;
This->position = tAviStart;
}
}