Ziqing Hui : qasf/dmowrapper: Allocate output samples before calling ProcessInput().
Module: wine Branch: master Commit: c6f4d04697d2b2f7575a66ae978dbd0bdbab2c9d URL: https://gitlab.winehq.org/wine/wine/-/commit/c6f4d04697d2b2f7575a66ae978dbd0... Author: Ziqing Hui <zhui(a)codeweavers.com> Date: Wed Jun 5 13:56:23 2024 +0800 qasf/dmowrapper: Allocate output samples before calling ProcessInput(). --- dlls/qasf/dmowrapper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/qasf/dmowrapper.c b/dlls/qasf/dmowrapper.c index 2caf59c746d..f94b00dbb44 100644 --- a/dlls/qasf/dmowrapper.c +++ b/dlls/qasf/dmowrapper.c @@ -327,6 +327,9 @@ static HRESULT WINAPI dmo_wrapper_sink_Receive(struct strmbase_sink *iface, IMed process_output(filter, dmo); } + if (FAILED(hr = get_output_samples(filter))) + goto out; + if (IMediaSample_IsSyncPoint(sample) == S_OK) flags |= DMO_INPUT_DATA_BUFFERF_SYNCPOINT; @@ -345,8 +348,6 @@ static HRESULT WINAPI dmo_wrapper_sink_Receive(struct strmbase_sink *iface, IMed goto out; } - if (FAILED(hr = get_output_samples(filter))) - goto out; process_output(filter, dmo); out:
participants (1)
-
Alexandre Julliard