From 2174565181444787355f46134ac386f1da450ee6 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 22 Jul 2008 08:04:20 -0700 Subject: [PATCH] quartz: Fix end of file handling when first request is already end of file --- dlls/quartz/avisplit.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/quartz/avisplit.c b/dlls/quartz/avisplit.c index e712eb9..4eebc39 100644 --- a/dlls/quartz/avisplit.c +++ b/dlls/quartz/avisplit.c @@ -449,6 +449,8 @@ static HRESULT AVISplitter_first_request(LPVOID iface) have_sample = (hr == S_OK); if (FAILED(hr)) break; + if (hr == S_FALSE) + AVISplitter_SendEndOfFile(This, x); } /* FIXME: Don't do this for each pin that sent an EOF */ @@ -976,8 +978,9 @@ static HRESULT AVISplitter_InitializeStreams(AVISplitterImpl *This) frames /= stream->streamheader.dwRate; - TRACE("Duration: %d days, %d hours, %d minutes and %d seconds\n", (DWORD)(frames / 86400), - (DWORD)((frames % 86400) / 3600), (DWORD)((frames % 3600) / 60), (DWORD)(frames % 60)); + TRACE("Duration: %d days, %d hours, %d minutes and %d.%03u seconds\n", (DWORD)(frames / 86400), + (DWORD)((frames % 86400) / 3600), (DWORD)((frames % 3600) / 60), (DWORD)(frames % 60), + (DWORD)(This->Parser.mediaSeeking.llDuration/10000) % 1000); } return S_OK; -- 1.5.4.1