From 6c3dbcdf436675bf5c297d7c451a1ba24bdfde95 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 9 Mar 2020 19:39:23 +0300 Subject: [PATCH] include: Update MF resolver flags. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- include/mfidl.idl | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/include/mfidl.idl b/include/mfidl.idl index 82f69518df0..fc9173864a7 100644 --- a/include/mfidl.idl +++ b/include/mfidl.idl @@ -925,13 +925,20 @@ interface IMFMediaSourceTopologyProvider : IUnknown HRESULT GetMediaSourceTopology([in] IMFPresentationDescriptor *pd, [out] IMFTopology **topology); } -cpp_quote("#define MF_RESOLUTION_MEDIASOURCE 0x00000001") -cpp_quote("#define MF_RESOLUTION_BYTESTREAM 0x00000002") -cpp_quote("#define MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE 0x00000010") -cpp_quote("#define MF_RESOLUTION_KEEP_BYTE_STREAM_ALIVE_ON_FAIL 0x00000020") -cpp_quote("#define MF_RESOLUTION_READ 0x00010000") -cpp_quote("#define MF_RESOLUTION_WRITE 0x00020000") -cpp_quote("#define MF_RESOLUTION_DISABLE_LOCAL_PLUGINS 0x00000040") +enum +{ + MF_RESOLUTION_MEDIASOURCE = 0x00000001, + MF_RESOLUTION_BYTESTREAM = 0x00000002, + MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE = 0x00000010, + MF_RESOLUTION_KEEP_BYTE_STREAM_ALIVE_ON_FAIL = 0x00000020, + MF_RESOLUTION_DISABLE_LOCAL_PLUGINS = 0x00000040, + MF_RESOLUTION_PLUGIN_CONTROL_POLICY_APPROVED_ONLY = 0x00000080, + MF_RESOLUTION_PLUGIN_CONTROL_POLICY_WEB_ONLY = 0x00000100, + MF_RESOLUTION_PLUGIN_CONTROL_POLICY_WEB_ONLY_EDGEMODE = 0x00000200, + MF_RESOLUTION_ENABLE_STORE_PLUGINS = 0x00000400, + MF_RESOLUTION_READ = 0x00010000, + MF_RESOLUTION_WRITE = 0x00020000, +}; cpp_quote("#ifdef __cplusplus") cpp_quote("static inline HRESULT MFSetAttributeSize(IMFAttributes *attributes, REFGUID key, UINT32 width, UINT32 height)")