mf/evr: Accept samples when prerolling.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e6cc5c067b
commit
8c9988d8d4
|
@ -350,7 +350,7 @@ static HRESULT WINAPI video_stream_sink_ProcessSample(IMFStreamSink *iface, IMFS
|
||||||
{
|
{
|
||||||
WARN("No sample timestamp, hr %#x.\n", hr);
|
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)))
|
if (SUCCEEDED(IMFTransform_ProcessInput(stream->parent->mixer, stream->id, sample, 0)))
|
||||||
IMFVideoPresenter_ProcessMessage(stream->parent->presenter, MFVP_MESSAGE_PROCESSINPUTNOTIFY, 0);
|
IMFVideoPresenter_ProcessMessage(stream->parent->presenter, MFVP_MESSAGE_PROCESSINPUTNOTIFY, 0);
|
||||||
|
|
Loading…
Reference in New Issue