Commit c46bdc94 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplat: Fix return value for IsCompressedFormat().

parent b00be289
...@@ -318,17 +318,18 @@ static HRESULT WINAPI mediatype_IsCompressedFormat(IMFMediaType *iface, BOOL *co ...@@ -318,17 +318,18 @@ static HRESULT WINAPI mediatype_IsCompressedFormat(IMFMediaType *iface, BOOL *co
{ {
struct media_type *media_type = impl_from_IMFMediaType(iface); struct media_type *media_type = impl_from_IMFMediaType(iface);
UINT32 value; UINT32 value;
HRESULT hr;
TRACE("%p, %p.\n", iface, compressed); TRACE("%p, %p.\n", iface, compressed);
hr = IMFAttributes_GetUINT32(&media_type->attributes.IMFAttributes_iface, &MF_MT_ALL_SAMPLES_INDEPENDENT, &value); if (FAILED(IMFAttributes_GetUINT32(&media_type->attributes.IMFAttributes_iface,
if (FAILED(hr)) &MF_MT_ALL_SAMPLES_INDEPENDENT, &value)))
{
value = 0; value = 0;
}
*compressed = !value; *compressed = !value;
return hr; return S_OK;
} }
static HRESULT WINAPI mediatype_IsEqual(IMFMediaType *iface, IMFMediaType *type, DWORD *flags) static HRESULT WINAPI mediatype_IsEqual(IMFMediaType *iface, IMFMediaType *type, DWORD *flags)
......
...@@ -355,7 +355,6 @@ if(0) ...@@ -355,7 +355,6 @@ if(0)
compressed = FALSE; compressed = FALSE;
hr = IMFMediaType_IsCompressedFormat(mediatype, &compressed); hr = IMFMediaType_IsCompressedFormat(mediatype, &compressed);
todo_wine
ok(hr == S_OK, "Failed to get media type property, hr %#x.\n", hr); ok(hr == S_OK, "Failed to get media type property, hr %#x.\n", hr);
ok(compressed, "Unexpected value %d.\n", compressed); ok(compressed, "Unexpected value %d.\n", compressed);
......
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