mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-03 01:01:44 +00:00
winegstreamer/video_encoder: Implement GetOutputCurrentType.
This commit is contained in:
parent
9c853fd36d
commit
f5e4dd96e9
|
@ -258,8 +258,18 @@ static HRESULT WINAPI transform_GetInputCurrentType(IMFTransform *iface, DWORD i
|
||||||
|
|
||||||
static HRESULT WINAPI transform_GetOutputCurrentType(IMFTransform *iface, DWORD id, IMFMediaType **type)
|
static HRESULT WINAPI transform_GetOutputCurrentType(IMFTransform *iface, DWORD id, IMFMediaType **type)
|
||||||
{
|
{
|
||||||
FIXME("iface %p, id %#lx, type %p\n", iface, id, type);
|
struct video_encoder *encoder = impl_from_IMFTransform(iface);
|
||||||
return E_NOTIMPL;
|
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)
|
static HRESULT WINAPI transform_GetInputStatus(IMFTransform *iface, DWORD id, DWORD *flags)
|
||||||
|
|
Loading…
Reference in a new issue