Commit 85e91d19 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplay: Set media item pointer for state change events.

parent 57dd3938
......@@ -1415,8 +1415,9 @@ static HRESULT WINAPI media_player_session_events_callback_Invoke(IMFAsyncCallba
media_player_set_state(player, state);
media_event_create(player, event_type, event_status, &event);
LeaveCriticalSection(&player->cs);
/* FIXME: set pMediaItem */
event->u.generic.item = item;
if (event->u.generic.item)
IMFPMediaItem_AddRef(event->u.generic.item);
media_player_queue_event(player, event);
break;
......
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