Commit 98f0b5f4 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

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

parent 7d6e28c3
...@@ -246,7 +246,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample, ...@@ -246,7 +246,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample,
MPEGSplitterImpl *This = (MPEGSplitterImpl*)iface; MPEGSplitterImpl *This = (MPEGSplitterImpl*)iface;
BYTE *pbSrcStream; BYTE *pbSrcStream;
DWORD cbSrcStream = 0; DWORD cbSrcStream = 0;
REFERENCE_TIME tStart, tStop; REFERENCE_TIME tStart, tStop, tAviStart = This->position;
Parser_OutputPin * pOutputPin; Parser_OutputPin * pOutputPin;
HRESULT hr; HRESULT hr;
...@@ -280,6 +280,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample, ...@@ -280,6 +280,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample,
{ {
memcpy(This->header, pbSrcStream, 4); memcpy(This->header, pbSrcStream, 4);
This->Parser.pInputPin->rtCurrent = tStart; This->Parser.pInputPin->rtCurrent = tStart;
This->position = tAviStart;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment