[PATCH 2/5] mf/evr: Accept samples when prerolling.
Nikolay Sivov
nsivov at codeweavers.com
Mon Nov 9 06:02:41 CST 2020
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/mf/evr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mf/evr.c b/dlls/mf/evr.c
index f5bbfffc4a5..486958f5f79 100644
--- a/dlls/mf/evr.c
+++ b/dlls/mf/evr.c
@@ -350,7 +350,7 @@ static HRESULT WINAPI video_stream_sink_ProcessSample(IMFStreamSink *iface, IMFS
{
WARN("No sample timestamp, hr %#x.\n", hr);
}
- else if (stream->parent->state == EVR_STATE_RUNNING)
+ else if (stream->parent->state == EVR_STATE_RUNNING || stream->flags & EVR_STREAM_PREROLLING)
{
if (SUCCEEDED(IMFTransform_ProcessInput(stream->parent->mixer, stream->id, sample, 0)))
IMFVideoPresenter_ProcessMessage(stream->parent->presenter, MFVP_MESSAGE_PROCESSINPUTNOTIFY, 0);
--
2.28.0
More information about the wine-devel
mailing list