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
0170cd3a
Commit
0170cd3a
authored
Aug 29, 2023
by
Santino Mazza
Committed by
Alexandre Julliard
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Handle errors with source event generator in session.
parent
09c96907
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
session.c
dlls/mf/session.c
+9
-3
No files found.
dlls/mf/session.c
View file @
0170cd3a
...
...
@@ -3679,7 +3679,9 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
if
(
FAILED
(
hr
=
IMFMediaEventGenerator_EndGetEvent
(
event_source
,
result
,
&
event
)))
{
WARN
(
"Failed to get event from %p, hr %#lx.
\n
"
,
event_source
,
hr
);
goto
failed
;
IMFMediaEventQueue_QueueEventParamVar
(
session
->
event_queue
,
MEError
,
&
GUID_NULL
,
hr
,
NULL
);
IMFMediaEventGenerator_Release
(
event_source
);
return
hr
;
}
if
(
FAILED
(
hr
=
IMFMediaEvent_GetType
(
event
,
&
event_type
)))
...
...
@@ -3872,11 +3874,15 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
PropVariantClear
(
&
value
);
failed:
if
(
event
)
IMFMediaEvent_Release
(
event
);
if
(
FAILED
(
hr
=
IMFMediaEventGenerator_BeginGetEvent
(
event_source
,
iface
,
(
IUnknown
*
)
event_source
)))
{
WARN
(
"Failed to re-subscribe, hr %#lx.
\n
"
,
hr
);
IMFMediaEventQueue_QueueEvent
(
session
->
event_queue
,
event
);
}
if
(
event
)
IMFMediaEvent_Release
(
event
);
IMFMediaEventGenerator_Release
(
event_source
);
...
...
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