Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1f2cf87d
Commit
1f2cf87d
authored
Jul 06, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Return sink flags.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1cdcfaf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
evr.c
dlls/mf/evr.c
+4
-2
mf.c
dlls/mf/tests/mf.c
+1
-3
No files found.
dlls/mf/evr.c
View file @
1f2cf87d
...
...
@@ -91,9 +91,11 @@ static ULONG WINAPI video_renderer_sink_Release(IMFMediaSink *iface)
static
HRESULT
WINAPI
video_renderer_sink_GetCharacteristics
(
IMFMediaSink
*
iface
,
DWORD
*
flags
)
{
FIXM
E
(
"%p, %p.
\n
"
,
iface
,
flags
);
TRAC
E
(
"%p, %p.
\n
"
,
iface
,
flags
);
return
E_NOTIMPL
;
*
flags
=
MEDIASINK_CLOCK_REQUIRED
|
MEDIASINK_CAN_PREROLL
;
return
S_OK
;
}
static
HRESULT
WINAPI
video_renderer_sink_AddStreamSink
(
IMFMediaSink
*
iface
,
DWORD
stream_sink_id
,
...
...
dlls/mf/tests/mf.c
View file @
1f2cf87d
...
...
@@ -3253,12 +3253,10 @@ static void test_evr(void)
hr
=
IMFActivate_ActivateObject
(
activate
,
&
IID_IMFMediaSink
,
(
void
**
)
&
sink
);
ok
(
hr
==
S_OK
,
"Failed to activate, hr %#x.
\n
"
,
hr
);
flags
=
0
;
hr
=
IMFMediaSink_GetCharacteristics
(
sink
,
&
flags
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
flags
==
(
MEDIASINK_CAN_PREROLL
|
MEDIASINK_CLOCK_REQUIRED
),
"Unexpected flags %#x.
\n
"
,
flags
);
}
hr
=
IMFMediaSink_QueryInterface
(
sink
,
&
IID_IMFMediaSinkPreroll
,
(
void
**
)
&
preroll
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IMFMediaSinkPreroll_Release
(
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