Last active
July 17, 2018 04:55
-
-
Save Alexpux/51376ec351473eda44f43db0e20838ca to your computer and use it in GitHub Desktop.
Patch for mingw-w64 mfplay.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /mingw64/x86_64-w64-mingw32/include/mfplay.h.orig 2018-07-16 15:01:12.563347000 +0300 | |
+++ /mingw64/x86_64-w64-mingw32/include/mfplay.h 2018-07-17 07:46:44.899293500 +0300 | |
@@ -3,12 +3,43 @@ | |
* This file is part of the mingw-w64 runtime package. | |
* No warranty is given; refer to the file DISCLAIMER.PD within this package. | |
*/ | |
-#ifndef _INC_MFPLAY | |
-#define _INC_MFPLAY | |
+ | |
+#ifndef __REQUIRED_RPCNDR_H_VERSION__ | |
+#define __REQUIRED_RPCNDR_H_VERSION__ 500 | |
+#endif | |
+ | |
+#include <rpc.h> | |
+#include <rpcndr.h> | |
+ | |
+#ifndef COM_NO_WINDOWS_H | |
+#include <windows.h> | |
+#include <ole2.h> | |
+#endif | |
+ | |
+#ifndef __mfplay_h__ | |
+#define __mfplay_h__ | |
#include <evr.h> | |
#if (WINVER >= 0x0601) | |
+ | |
+#ifndef __IMFPMediaPlayer_FWD_DEFINED__ | |
+#define __IMFPMediaPlayer_FWD_DEFINED__ | |
+typedef interface IMFPMediaPlayer IMFPMediaPlayer; | |
+#endif | |
+ | |
+#ifndef __IMFPMediaItem_FWD_DEFINED__ | |
+#define __IMFPMediaItem_FWD_DEFINED__ | |
+typedef interface IMFPMediaItem IMFPMediaItem; | |
+#endif | |
+ | |
+#ifndef __IMFPMediaPlayerCallback_FWD_DEFINED__ | |
+#define __IMFPMediaPlayerCallback_FWD_DEFINED__ | |
+typedef interface IMFPMediaPlayerCallback IMFPMediaPlayerCallback; | |
+#endif | |
+ | |
+typedef UINT32 MFP_CREATION_OPTIONS; | |
+ | |
typedef enum _MFP_CREATION_OPTIONS { | |
MFP_OPTION_NONE = 0, | |
MFP_OPTION_FREE_THREADED_CALLBACK = 0x00000001, | |
@@ -16,6 +47,8 @@ | |
MFP_OPTION_NO_REMOTE_DESKTOP_OPTIMIZATION = 0x00000004 | |
} _MFP_CREATION_OPTIONS; | |
+typedef UINT32 MFP_MEDIAITEM_CHARACTERISTICS; | |
+ | |
typedef enum _MFP_MEDIAITEM_CHARACTERISTICS { | |
MFP_MEDIAITEM_IS_LIVE = 0x00000001, | |
MFP_MEDIAITEM_CAN_SEEK = 0x00000002, | |
@@ -320,6 +355,8 @@ | |
IMFPMediaItem *pMediaItem; | |
} MFP_PLAYBACK_ENDED_EVENT; | |
+typedef UINT32 MFP_CREDENTIAL_FLAGS; | |
+ | |
typedef struct MFP_ACQUIRE_USER_CREDENTIAL_EVENT { | |
MFP_EVENT_HEADER header; | |
DWORD_PTR dwUserData; | |
@@ -334,9 +371,6 @@ | |
IMFNetCredential *pCredential; | |
} MFP_ACQUIRE_USER_CREDENTIAL_EVENT; | |
-typedef UINT32 MFP_CREATION_OPTIONS; | |
-typedef UINT32 MFP_MEDIAITEM_CHARACTERISTICS; | |
- | |
#ifdef __cplusplus | |
extern "C" { | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment