Maarten Lankhorst : quartz: Reset time when rejecting sample in the mpeg splitter.
Alexandre Julliard
julliard at winehq.org
Tue May 13 04:39:56 CDT 2008
Module: wine
Branch: master
Commit: 98f0b5f4797fba0af51411c639c87d4c76d39a6a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=98f0b5f4797fba0af51411c639c87d4c76d39a6a
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Fri May 9 16:38:29 2008 -0700
quartz: Reset time when rejecting sample in the mpeg splitter.
---
dlls/quartz/mpegsplit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/mpegsplit.c b/dlls/quartz/mpegsplit.c
index 86c9369..ee93e2e 100644
--- a/dlls/quartz/mpegsplit.c
+++ b/dlls/quartz/mpegsplit.c
@@ -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;
}
}
More information about the wine-cvs
mailing list