Nikolay Sivov : mf/evr: Post sink marker events.

Alexandre Julliard julliard at winehq.org
Thu May 6 14:56:19 CDT 2021


Module: wine
Branch: master
Commit: 4992fddc00e72d841cfcc609f5e0d336fd133be1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4992fddc00e72d841cfcc609f5e0d336fd133be1

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu May  6 16:08:49 2021 +0300

mf/evr: Post sink marker events.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mf/evr.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/mf/evr.c b/dlls/mf/evr.c
index 046f5cb3ca3..64489ac4c58 100644
--- a/dlls/mf/evr.c
+++ b/dlls/mf/evr.c
@@ -439,12 +439,12 @@ static void video_stream_end_of_stream(struct video_stream *stream)
 }
 
 static HRESULT WINAPI video_stream_sink_PlaceMarker(IMFStreamSink *iface, MFSTREAMSINK_MARKER_TYPE marker_type,
-        const PROPVARIANT *marker_value, const PROPVARIANT *context_value)
+        const PROPVARIANT *marker_value, const PROPVARIANT *context)
 {
     struct video_stream *stream = impl_from_IMFStreamSink(iface);
     HRESULT hr = S_OK;
 
-    TRACE("%p, %d, %p, %p.\n", iface, marker_type, marker_value, context_value);
+    TRACE("%p, %d, %p, %p.\n", iface, marker_type, marker_value, context);
 
     EnterCriticalSection(&stream->cs);
     if (!stream->parent)
@@ -453,6 +453,7 @@ static HRESULT WINAPI video_stream_sink_PlaceMarker(IMFStreamSink *iface, MFSTRE
     {
         if (marker_type == MFSTREAMSINK_MARKER_ENDOFSEGMENT)
             video_stream_end_of_stream(stream);
+        IMFMediaEventQueue_QueueEventParamVar(stream->event_queue, MEStreamSinkMarker, &GUID_NULL, S_OK, context);
     }
     LeaveCriticalSection(&stream->cs);
 




More information about the wine-cvs mailing list