mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-18 09:16:17 +00:00
winegstreamer/video_encoder: Implement GetInputCurrentType.
This commit is contained in:
parent
6f22111a9f
commit
adce0d34f5
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue