Commit 602a3085 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/evr: Add default attributes on sink creation.

parent f0c2b0d2
......@@ -1896,6 +1896,18 @@ static HRESULT evr_create_object(IMFAttributes *attributes, void *user_context,
IMFTransform_Release(mixer);
IMFVideoPresenter_Release(presenter);
/* Default attributes */
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_ForceBob, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_AllowDropToBob, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_ForceThrottle, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_AllowDropToThrottle, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_ForceHalfInterlace, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_AllowDropToHalfInterlace, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_ForceScaling, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_AllowScaling, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_ForceBatching, 0);
IMFAttributes_SetUINT32(object->attributes, &EVRConfig_AllowBatching, 0);
*obj = (IUnknown *)&object->IMFMediaSink_iface;
return S_OK;
......
......@@ -3291,7 +3291,6 @@ static void test_evr(void)
IUnknown_Release(unk);
hr = IMFAttributes_GetCount(attributes, &count);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
todo_wine
ok(!!count, "Unexpected count %u.\n", count);
IMFAttributes_Release(attributes);
......
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