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
f151550e
Commit
f151550e
authored
Jun 02, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfmediaengine: Forward buffering events to user callback.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4bbb7b66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
main.c
dlls/mfmediaengine/main.c
+22
-0
No files found.
dlls/mfmediaengine/main.c
View file @
f151550e
...
...
@@ -137,10 +137,32 @@ static HRESULT WINAPI media_engine_session_events_Invoke(IMFAsyncCallback *iface
{
struct
media_engine
*
engine
=
impl_from_session_events_IMFAsyncCallback
(
iface
);
IMFMediaEvent
*
event
=
NULL
;
MediaEventType
event_type
;
HRESULT
hr
;
if
(
FAILED
(
hr
=
IMFMediaSession_EndGetEvent
(
engine
->
session
,
result
,
&
event
)))
{
WARN
(
"Failed to get session event, hr %#x.
\n
"
,
hr
);
goto
failed
;
}
if
(
FAILED
(
hr
=
IMFMediaEvent_GetType
(
event
,
&
event_type
)))
{
WARN
(
"Failed to get event type, hr %#x.
\n
"
,
hr
);
goto
failed
;
}
switch
(
event_type
)
{
case
MEBufferingStarted
:
case
MEBufferingStopped
:
IMFMediaEngineNotify_EventNotify
(
engine
->
callback
,
event_type
==
MEBufferingStarted
?
MF_MEDIA_ENGINE_EVENT_BUFFERINGSTARTED
:
MF_MEDIA_ENGINE_EVENT_BUFFERINGENDED
,
0
,
0
);
break
;
}
failed:
if
(
event
)
IMFMediaEvent_Release
(
event
);
...
...
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