Commit 3d6669cc authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplat: Use RTWQ* type in BeginGetEvent().

parent 8335099b
...@@ -7109,7 +7109,7 @@ static void queue_notify_subscriber(struct event_queue *queue) ...@@ -7109,7 +7109,7 @@ static void queue_notify_subscriber(struct event_queue *queue)
static HRESULT WINAPI eventqueue_BeginGetEvent(IMFMediaEventQueue *iface, IMFAsyncCallback *callback, IUnknown *state) static HRESULT WINAPI eventqueue_BeginGetEvent(IMFMediaEventQueue *iface, IMFAsyncCallback *callback, IUnknown *state)
{ {
struct event_queue *queue = impl_from_IMFMediaEventQueue(iface); struct event_queue *queue = impl_from_IMFMediaEventQueue(iface);
MFASYNCRESULT *result_data; RTWQASYNCRESULT *result_data;
HRESULT hr; HRESULT hr;
TRACE("%p, %p, %p.\n", iface, callback, state); TRACE("%p, %p, %p.\n", iface, callback, state);
...@@ -7121,9 +7121,9 @@ static HRESULT WINAPI eventqueue_BeginGetEvent(IMFMediaEventQueue *iface, IMFAsy ...@@ -7121,9 +7121,9 @@ static HRESULT WINAPI eventqueue_BeginGetEvent(IMFMediaEventQueue *iface, IMFAsy
if (queue->is_shut_down) if (queue->is_shut_down)
hr = MF_E_SHUTDOWN; hr = MF_E_SHUTDOWN;
else if ((result_data = (MFASYNCRESULT *)queue->subscriber)) else if ((result_data = (RTWQASYNCRESULT *)queue->subscriber))
{ {
if (result_data->pCallback == callback) if (result_data->pCallback == (IRtwqAsyncCallback *)callback)
hr = IRtwqAsyncResult_GetStateNoAddRef(queue->subscriber) == state ? hr = IRtwqAsyncResult_GetStateNoAddRef(queue->subscriber) == state ?
MF_S_MULTIPLE_BEGIN : MF_E_MULTIPLE_BEGIN; MF_S_MULTIPLE_BEGIN : MF_E_MULTIPLE_BEGIN;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment