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
4634fd4c
Commit
4634fd4c
authored
Mar 29, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/session: Handle MF_TOPONODE_DISABLE_PREROLL on sink nodes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d614d048
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
session.c
dlls/mf/session.c
+3
-1
No files found.
dlls/mf/session.c
View file @
4634fd4c
...
...
@@ -1232,6 +1232,7 @@ static DWORD session_get_object_rate_caps(IUnknown *object)
static
HRESULT
session_add_media_sink
(
struct
media_session
*
session
,
IMFTopologyNode
*
node
,
IMFMediaSink
*
sink
)
{
struct
media_sink
*
media_sink
;
unsigned
int
disable_preroll
=
0
;
DWORD
flags
;
LIST_FOR_EACH_ENTRY
(
media_sink
,
&
session
->
presentation
.
sinks
,
struct
media_sink
,
entry
)
...
...
@@ -1248,7 +1249,8 @@ static HRESULT session_add_media_sink(struct media_session *session, IMFTopology
IMFMediaSink_QueryInterface
(
media_sink
->
sink
,
&
IID_IMFMediaEventGenerator
,
(
void
**
)
&
media_sink
->
event_generator
);
if
(
SUCCEEDED
(
IMFMediaSink_GetCharacteristics
(
sink
,
&
flags
))
&&
flags
&
MEDIASINK_CAN_PREROLL
)
IMFTopologyNode_GetUINT32
(
node
,
&
MF_TOPONODE_DISABLE_PREROLL
,
&
disable_preroll
);
if
(
SUCCEEDED
(
IMFMediaSink_GetCharacteristics
(
sink
,
&
flags
))
&&
flags
&
MEDIASINK_CAN_PREROLL
&&
!
disable_preroll
)
{
if
(
SUCCEEDED
(
IMFMediaSink_QueryInterface
(
media_sink
->
sink
,
&
IID_IMFMediaSinkPreroll
,
(
void
**
)
&
media_sink
->
preroll
)))
session
->
presentation
.
flags
|=
SESSION_FLAG_NEEDS_PREROLL
;
...
...
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