winegstreamer/video_encoder: Implement GetInputCurrentType.

This commit is contained in:
Ziqing Hui 2024-06-28 14:19:20 +08:00 committed by Alexandre Julliard
parent 6f22111a9f
commit adce0d34f5

View file

@ -349,8 +349,19 @@ static HRESULT WINAPI transform_SetOutputType(IMFTransform *iface, DWORD id, IMF
static HRESULT WINAPI transform_GetInputCurrentType(IMFTransform *iface, DWORD id, IMFMediaType **type)
{
FIXME("iface %p, id %#lx, type %p\n", iface, id, type);
return E_NOTIMPL;
struct video_encoder *encoder = impl_from_IMFTransform(iface);
HRESULT hr;
TRACE("iface %p, id %#lx, type %p\n", iface, id, type);
if (!encoder->input_type)
return MF_E_TRANSFORM_TYPE_NOT_SET;
if (FAILED(hr = MFCreateMediaType(type)))
return hr;
return IMFMediaType_CopyAllItems(encoder->input_type, (IMFAttributes *)*type);
}
static HRESULT WINAPI transform_GetOutputCurrentType(IMFTransform *iface, DWORD id, IMFMediaType **type)