Alistair Leslie-Hughes : mfplat: Added MFCreateEventQueue stub.

Alexandre Julliard julliard at winehq.org
Wed Sep 6 14:45:37 CDT 2017


Module: wine
Branch: master
Commit: d003ed3b1743985282c8c8e9c597d77c4b47bb15
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d003ed3b1743985282c8c8e9c597d77c4b47bb15

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Wed Sep  6 07:38:58 2017 +0000

mfplat: Added MFCreateEventQueue stub.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfplat/main.c      | 13 +++++++++++++
 dlls/mfplat/mfplat.spec |  2 +-
 include/mfapi.h         |  1 +
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index e6616c8..7e12be4 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -1513,3 +1513,16 @@ HRESULT WINAPI MFCreateMediaType(IMFMediaType **type)
     *type = &object->IMFMediaType_iface;
     return S_OK;
 }
+
+/***********************************************************************
+ *      MFCreateEventQueue (mfplat.@)
+ */
+HRESULT WINAPI MFCreateEventQueue(IMFMediaEventQueue **queue)
+{
+    FIXME("%p\n", queue);
+
+    if(queue)
+        *queue = NULL;
+
+    return E_FAIL;
+}
diff --git a/dlls/mfplat/mfplat.spec b/dlls/mfplat/mfplat.spec
index efcb143..e9c0eec 100644
--- a/dlls/mfplat/mfplat.spec
+++ b/dlls/mfplat/mfplat.spec
@@ -42,7 +42,7 @@
 @ stdcall MFCreateAttributes(ptr long)
 @ stub MFCreateAudioMediaType
 @ stub MFCreateCollection
-@ stub MFCreateEventQueue
+@ stdcall MFCreateEventQueue(ptr)
 @ stub MFCreateFile
 @ stub MFCreateLegacyMediaBufferOnMFMediaBuffer
 @ stub MFCreateMFByteStreamOnStream
diff --git a/include/mfapi.h b/include/mfapi.h
index 2be0638..5aead1e 100644
--- a/include/mfapi.h
+++ b/include/mfapi.h
@@ -65,6 +65,7 @@ typedef unsigned __int64 MFWORKITEM_KEY;
 
 HRESULT WINAPI MFCancelWorkItem(MFWORKITEM_KEY key);
 HRESULT WINAPI MFCreateAttributes(IMFAttributes **attributes, UINT32 size);
+HRESULT WINAPI MFCreateEventQueue(IMFMediaEventQueue **queue);
 HRESULT WINAPI MFCreateMediaType(IMFMediaType **type);
 HRESULT WINAPI MFGetTimerPeriodicity(DWORD *periodicity);
 HRESULT WINAPI MFTEnum(GUID category, UINT32 flags, MFT_REGISTER_TYPE_INFO *input_type,




More information about the wine-cvs mailing list