1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

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
68fa3f6736.
This commit is contained in:
Henri Verbeet 2022-08-23 10:38:41 +02:00 committed by Alexandre Julliard
parent 2be95875c0
commit 76db4b2459

View File

@ -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)))