mfplay: Set media item pointer for state change events.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-04-13 09:03:29 +03:00 committed by Alexandre Julliard
parent 57dd39384b
commit 85e91d19bc
1 changed files with 3 additions and 2 deletions

View File

@ -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;