mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:50:49 +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:
parent
2be95875c0
commit
76db4b2459
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue