Commit c2d56a7e authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

winegstreamer: Fix wg_transform_get_status() result check (Coverity).

wg_transform_get_status() returns bool, not HRESULT.
parent c1fa6be4
......@@ -535,15 +535,14 @@ static HRESULT WINAPI transform_GetInputStatus(IMFTransform *iface, DWORD id, DW
{
struct aac_decoder *decoder = impl_from_IMFTransform(iface);
bool accepts_input;
HRESULT hr;
TRACE("iface %p, id %#lx, flags %p.\n", iface, id, flags);
if (!decoder->wg_transform)
return MF_E_TRANSFORM_TYPE_NOT_SET;
if (FAILED(hr = wg_transform_get_status(decoder->wg_transform, &accepts_input)))
return hr;
if (!wg_transform_get_status(decoder->wg_transform, &accepts_input))
return E_FAIL;
*flags = accepts_input ? MFT_INPUT_STATUS_ACCEPT_DATA : 0;
return S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment