From: Conor McCarthy cmccarthy@codeweavers.com
Other methods for the video object return DMO_E_TYPE_NOT_SET if wg_transform is null. A race condition in Nioh can result in Flush() being called when the transform is not set. --- dlls/winegstreamer/video_decoder.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/winegstreamer/video_decoder.c b/dlls/winegstreamer/video_decoder.c index 891066dac3b..ce716dd0004 100644 --- a/dlls/winegstreamer/video_decoder.c +++ b/dlls/winegstreamer/video_decoder.c @@ -1315,6 +1315,9 @@ static HRESULT WINAPI media_object_Flush(IMediaObject *iface)
TRACE("iface %p.\n", iface);
+ if (!decoder->wg_transform) + return DMO_E_TYPE_NOT_SET; + if (FAILED(hr = wg_transform_flush(decoder->wg_transform))) return hr;