Maarten Lankhorst : quartz: Fix end of file handling when first request is already end of file.

Alexandre Julliard julliard at winehq.org
Tue Jul 29 07:16:24 CDT 2008


Module: wine
Branch: master
Commit: 6becc9e14b0b2f07cea727deea47b307bfa7ea2b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6becc9e14b0b2f07cea727deea47b307bfa7ea2b

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Tue Jul 22 08:04:20 2008 -0700

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;




More information about the wine-cvs mailing list