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
c6121962
Commit
c6121962
authored
Feb 28, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Query for optional event generator for sinks.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4fc32ab6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
session.c
dlls/mf/session.c
+5
-1
No files found.
dlls/mf/session.c
View file @
c6121962
...
...
@@ -107,6 +107,7 @@ struct media_sink
{
struct
list
entry
;
IMFMediaSink
*
sink
;
IMFMediaEventGenerator
*
event_generator
;
};
struct
output_node
...
...
@@ -573,13 +574,14 @@ static void session_clear_presentation(struct media_session *session)
heap_free
(
src_node
);
}
LIST_FOR_EACH_ENTRY_SAFE
(
sink
,
sink2
,
&
session
->
presentation
.
sinks
,
struct
media_sink
,
entry
)
{
list_remove
(
&
sink
->
entry
);
if
(
sink
->
sink
)
IMFMediaSink_Release
(
sink
->
sink
);
if
(
sink
->
event_generator
)
IMFMediaEventGenerator_Release
(
sink
->
event_generator
);
heap_free
(
sink
);
}
}
...
...
@@ -812,6 +814,8 @@ static HRESULT session_add_media_sink(struct media_session *session, IMFTopology
media_sink
->
sink
=
sink
;
IMFMediaSink_AddRef
(
media_sink
->
sink
);
IMFMediaSink_QueryInterface
(
media_sink
->
sink
,
&
IID_IMFMediaEventGenerator
,
(
void
**
)
&
media_sink
->
event_generator
);
list_add_tail
(
&
session
->
presentation
.
sinks
,
&
media_sink
->
entry
);
return
S_OK
;
...
...
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