Commit 76db4b24 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

mfreadwrite/reader: Only attempt to copy sample buffers from responses with non-NULL samples.

For example, queueing a MF_SOURCE_READERF_ENDOFSTREAM response will set a NULL sample. This fixes a regression introduced by commit 68fa3f67.
parent 2be95875
......@@ -958,7 +958,7 @@ static struct stream_response *media_stream_pop_response(struct source_reader *r
if (!stream) stream = &reader->streams[response->stream_index];
if (stream->allocator)
if (response->sample && stream->allocator)
{
/* Return allocation error to the caller, while keeping original response sample in for later. */
if (SUCCEEDED(hr = IMFVideoSampleAllocatorEx_AllocateSample(stream->allocator, &sample)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment