Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d0257e0b
Commit
d0257e0b
authored
Apr 13, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay: Implement MFP_EVENT_TYPE_MF event.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5512ecea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
player.c
dlls/mfplay/player.c
+28
-0
No files found.
dlls/mfplay/player.c
View file @
d0257e0b
...
...
@@ -1488,6 +1488,21 @@ static void media_player_clear_item(struct media_player *player, HRESULT event_s
LeaveCriticalSection
(
&
player
->
cs
);
}
static
void
media_player_create_forward_event
(
struct
media_player
*
player
,
HRESULT
event_status
,
IMFMediaEvent
*
session_event
,
struct
media_event
**
event
)
{
EnterCriticalSection
(
&
player
->
cs
);
if
(
SUCCEEDED
(
media_event_create
(
player
,
MFP_EVENT_TYPE_MF
,
event_status
,
player
->
item
,
event
)))
{
IMFMediaEvent_GetType
(
session_event
,
&
(
*
event
)
->
u
.
event
.
MFEventType
);
(
*
event
)
->
u
.
event
.
pMFMediaEvent
=
session_event
;
IMFMediaEvent_AddRef
((
*
event
)
->
u
.
event
.
pMFMediaEvent
);
}
LeaveCriticalSection
(
&
player
->
cs
);
}
static
HRESULT
WINAPI
media_player_session_events_callback_Invoke
(
IMFAsyncCallback
*
iface
,
IMFAsyncResult
*
result
)
{
...
...
@@ -1543,6 +1558,19 @@ static HRESULT WINAPI media_player_session_events_callback_Invoke(IMFAsyncCallba
}
break
;
case
MEBufferingStarted
:
case
MEBufferingStopped
:
case
MEExtendedType
:
case
MEReconnectStart
:
case
MEReconnectEnd
:
case
MERendererEvent
:
case
MEStreamSinkFormatChanged
:
media_player_create_forward_event
(
player
,
event_status
,
session_event
,
&
event
);
break
;
default:
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment