From: Eric Pouech <epouech@codeweavers.com> And also MFDeserializeAttributesToStream. Signed-off-by: Eric Pouech <epouech@codeweavers.com> --- dlls/mfplat/main.c | 18 ++++++++++++++++++ dlls/mfplat/mfplat.spec | 4 ++-- include/mfobjects.idl | 3 +++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c index 01d9d2ddd89..da9dce416ba 100644 --- a/dlls/mfplat/main.c +++ b/dlls/mfplat/main.c @@ -9501,3 +9501,21 @@ HRESULT WINAPI MFCreatePathFromURL(const WCHAR *url, WCHAR **ret_path) memcpy(*ret_path, path, (length + 1) * sizeof(*path)); return S_OK; } + +/*********************************************************************** + * MFSerializeAttributesToStream (mfplat.@) + */ +HRESULT WINAPI MFSerializeAttributesToStream(IMFAttributes *attr, DWORD options, IStream *stream) +{ + FIXME("%p %lx %p: stub!\n", attr, options, stream); + return E_NOTIMPL; +} + +/*********************************************************************** + * MFDeserializeAttributesFromStream (mfplat.@) + */ +HRESULT WINAPI MFDeserializeAttributesFromStream(IMFAttributes *attr, DWORD options, IStream *stream) +{ + FIXME("%p %lx %p: stub!\n", attr, options, stream); + return E_NOTIMPL; +} diff --git a/dlls/mfplat/mfplat.spec b/dlls/mfplat/mfplat.spec index 7b356f9f457..229230cd899 100644 --- a/dlls/mfplat/mfplat.spec +++ b/dlls/mfplat/mfplat.spec @@ -84,7 +84,7 @@ @ stdcall MFCreateVideoMediaTypeFromVideoInfoHeader(ptr long long long long int64 ptr ptr) @ stdcall MFCreateVideoSampleAllocatorEx(ptr ptr) @ stdcall MFCreateWaveFormatExFromMFMediaType(ptr ptr ptr long) -@ stub MFDeserializeAttributesFromStream +@ stdcall MFDeserializeAttributesFromStream(ptr long ptr) @ stub MFDeserializeEvent @ stub MFDeserializeMediaTypeFromStream @ stub MFDeserializePresentationDescriptor @@ -149,7 +149,7 @@ @ stdcall MFRemovePeriodicCallback(long) rtworkq.RtwqRemovePeriodicCallback @ stdcall MFScheduleWorkItem(ptr ptr int64 ptr) @ stdcall MFScheduleWorkItemEx(ptr int64 ptr) rtworkq.RtwqScheduleWorkItem -@ stub MFSerializeAttributesToStream +@ stdcall MFSerializeAttributesToStream(ptr long ptr) @ stub MFSerializeEvent @ stub MFSerializeMediaTypeToStream @ stub MFSerializePresentationDescriptor diff --git a/include/mfobjects.idl b/include/mfobjects.idl index 33b4bbad008..7dbdc5796ac 100644 --- a/include/mfobjects.idl +++ b/include/mfobjects.idl @@ -88,6 +88,9 @@ enum MF_ATTRIBUTE_SERIALIZE_OPTIONS { MF_ATTRIBUTE_SERIALIZE_UNKNOWN_BYREF = 0x00000001 }; +cpp_quote( "STDAPI MFSerializeAttributesToStream(IMFAttributes *, DWORD, IStream *);") +cpp_quote( "STDAPI MFDeserializeAttributesFromStream(IMFAttributes *, DWORD, IStream *);") + [ object, uuid(045fa593-8799-42b8-bc8d-8968c6453507), -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10409