Nikolay Sivov : mfplat: Added MFBeginRegisterWorkQueueWithMMCSS().

Alexandre Julliard julliard at winehq.org
Wed Oct 7 16:04:11 CDT 2020


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Oct  7 11:40:23 2020 +0300

mfplat: Added MFBeginRegisterWorkQueueWithMMCSS().

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/mfplat/mfplat.spec b/dlls/mfplat/mfplat.spec
index 8f5e7db6ae..5f4735cd6f 100644
--- a/dlls/mfplat/mfplat.spec
+++ b/dlls/mfplat/mfplat.spec
@@ -23,7 +23,7 @@
 @ stub MFAverageTimePerFrameToFrameRate
 @ stdcall MFBeginCreateFile(long long long wstr ptr ptr ptr)
 @ stub MFBeginGetHostByName
-@ stub MFBeginRegisterWorkQueueWithMMCSS
+@ stdcall MFBeginRegisterWorkQueueWithMMCSS(long wstr long ptr ptr)
 @ stdcall MFBeginRegisterWorkQueueWithMMCSSEx(long wstr long long ptr ptr) rtworkq.RtwqBeginRegisterWorkQueueWithMMCSS
 @ stdcall MFBeginUnregisterWorkQueueWithMMCSS(long ptr ptr) rtworkq.RtwqBeginUnregisterWorkQueueWithMMCSS
 @ stub MFBlockThread
diff --git a/dlls/mfplat/queue.c b/dlls/mfplat/queue.c
index 2080a79f84..8279929b46 100644
--- a/dlls/mfplat/queue.c
+++ b/dlls/mfplat/queue.c
@@ -140,3 +140,13 @@ HRESULT WINAPI MFGetTimerPeriodicity(DWORD *period)
 
     return S_OK;
 }
+
+/***********************************************************************
+ *      MFBeginRegisterWorkQueueWithMMCSS (mfplat.@)
+ */
+HRESULT WINAPI MFBeginRegisterWorkQueueWithMMCSS(DWORD queue, const WCHAR *usage_class, DWORD taskid,
+        IMFAsyncCallback *callback, IUnknown *state)
+{
+    return RtwqBeginRegisterWorkQueueWithMMCSS(queue, usage_class, taskid, 0,
+            (IRtwqAsyncCallback *)callback, state);
+}
diff --git a/include/mfapi.h b/include/mfapi.h
index e9b26f322c..499c77ab33 100644
--- a/include/mfapi.h
+++ b/include/mfapi.h
@@ -488,6 +488,8 @@ HRESULT WINAPI MFAllocateWorkQueue(DWORD *queue);
 HRESULT WINAPI MFAllocateWorkQueueEx(MFASYNC_WORKQUEUE_TYPE queue_type, DWORD *queue);
 HRESULT WINAPI MFBeginCreateFile(MF_FILE_ACCESSMODE access_mode, MF_FILE_OPENMODE open_mode, MF_FILE_FLAGS flags,
         const WCHAR *path, IMFAsyncCallback *callback, IUnknown *state, IUnknown **cancel_cookie);
+HRESULT WINAPI MFBeginRegisterWorkQueueWithMMCSS(DWORD queue, const WCHAR *usage_class, DWORD taskid,
+        IMFAsyncCallback *callback, IUnknown *state);
 HRESULT WINAPI MFBeginRegisterWorkQueueWithMMCSSEx(DWORD queue, const WCHAR *usage_class, DWORD taskid, LONG priority,
         IMFAsyncCallback *callback, IUnknown *state);
 HRESULT WINAPI MFBeginUnregisterWorkQueueWithMMCSS(DWORD queue, IMFAsyncCallback *callback, IUnknown *state);




More information about the wine-cvs mailing list