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
602a3085
Commit
602a3085
authored
Oct 15, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Add default attributes on sink creation.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0c2b0d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
evr.c
dlls/mf/evr.c
+12
-0
mf.c
dlls/mf/tests/mf.c
+0
-1
No files found.
dlls/mf/evr.c
View file @
602a3085
...
...
@@ -1896,6 +1896,18 @@ static HRESULT evr_create_object(IMFAttributes *attributes, void *user_context,
IMFTransform_Release
(
mixer
);
IMFVideoPresenter_Release
(
presenter
);
/* Default attributes */
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_ForceBob
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_AllowDropToBob
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_ForceThrottle
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_AllowDropToThrottle
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_ForceHalfInterlace
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_AllowDropToHalfInterlace
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_ForceScaling
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_AllowScaling
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_ForceBatching
,
0
);
IMFAttributes_SetUINT32
(
object
->
attributes
,
&
EVRConfig_AllowBatching
,
0
);
*
obj
=
(
IUnknown
*
)
&
object
->
IMFMediaSink_iface
;
return
S_OK
;
...
...
dlls/mf/tests/mf.c
View file @
602a3085
...
...
@@ -3291,7 +3291,6 @@ static void test_evr(void)
IUnknown_Release
(
unk
);
hr
=
IMFAttributes_GetCount
(
attributes
,
&
count
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
!!
count
,
"Unexpected count %u.
\n
"
,
count
);
IMFAttributes_Release
(
attributes
);
...
...
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