1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-01 07:14:31 +00:00

winegstreamer/video_encoder: Implement GetOutputCurrentType.

This commit is contained in:
Ziqing Hui 2024-06-26 16:46:42 +08:00 committed by Alexandre Julliard
parent 9c853fd36d
commit f5e4dd96e9

View File

@ -258,8 +258,18 @@ static HRESULT WINAPI transform_GetInputCurrentType(IMFTransform *iface, DWORD i
static HRESULT WINAPI transform_GetOutputCurrentType(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->output_type)
return MF_E_TRANSFORM_TYPE_NOT_SET;
if (FAILED(hr = MFCreateMediaType(type)))
return hr;
return IMFMediaType_CopyAllItems(encoder->output_type, (IMFAttributes *)*type);
}
static HRESULT WINAPI transform_GetInputStatus(IMFTransform *iface, DWORD id, DWORD *flags)