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:
parent
57dd39384b
commit
85e91d19bc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue