[PATCH 0/2] MR10975: winegstreamer: Initialise a maximum of 30 samples for the video decoder/processor.
The number of output samples which may be queued in the decoder can depend on the number of threads used. A requirement of 24 has been observed, but 30 provides a buffer for edge cases. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10975
From: Conor McCarthy <cmccarthy@codeweavers.com> The number of output samples which may be queued in the decoder can depend on the number of threads used. A requirement of 24 has been observed, but 30 provides a buffer for edge cases. --- dlls/winegstreamer/video_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winegstreamer/video_decoder.c b/dlls/winegstreamer/video_decoder.c index 7e8b7de754a..b8c10cc7a43 100644 --- a/dlls/winegstreamer/video_decoder.c +++ b/dlls/winegstreamer/video_decoder.c @@ -450,7 +450,7 @@ static HRESULT init_allocator(struct video_decoder *decoder) if (FAILED(hr = IMFTransform_SetOutputType(decoder->copier, 0, decoder->output_type, 0))) return hr; - if (FAILED(hr = IMFVideoSampleAllocatorEx_InitializeSampleAllocatorEx(decoder->allocator, 10, 10, + if (FAILED(hr = IMFVideoSampleAllocatorEx_InitializeSampleAllocatorEx(decoder->allocator, 10, 30, decoder->attributes, decoder->output_type))) return hr; decoder->allocator_initialized = TRUE; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10975
From: Conor McCarthy <cmccarthy@codeweavers.com> --- dlls/winegstreamer/video_processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winegstreamer/video_processor.c b/dlls/winegstreamer/video_processor.c index 229fe0d482c..4e0943f5885 100644 --- a/dlls/winegstreamer/video_processor.c +++ b/dlls/winegstreamer/video_processor.c @@ -188,7 +188,7 @@ static HRESULT video_processor_init_allocator(struct video_processor *processor) if (FAILED(IMFAttributes_GetUINT32(processor->attributes, &MF_SA_MINIMUM_OUTPUT_SAMPLE_COUNT, &count))) count = 2; if (FAILED(hr = IMFVideoSampleAllocatorEx_SetDirectXManager(allocator, processor->device_manager)) - || FAILED(hr = IMFVideoSampleAllocatorEx_InitializeSampleAllocatorEx(allocator, count, max(count + 2, 10), + || FAILED(hr = IMFVideoSampleAllocatorEx_InitializeSampleAllocatorEx(allocator, count, max(count + 2, 30), processor->output_attributes, processor->output_type))) { IMFVideoSampleAllocatorEx_Release(allocator); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10975
participants (2)
-
Conor McCarthy -
Conor McCarthy (@cmccarthy)