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
30727dec
Commit
30727dec
authored
Oct 30, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/presenter: Set mixer output type on type negotiation.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
13aa1e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
presenter.c
dlls/evr/presenter.c
+23
-1
No files found.
dlls/evr/presenter.c
View file @
30727dec
...
...
@@ -157,9 +157,31 @@ static void video_presenter_get_native_video_size(struct video_presenter *presen
static
HRESULT
video_presenter_invalidate_media_type
(
struct
video_presenter
*
presenter
)
{
IMFMediaType
*
media_type
;
unsigned
int
idx
=
0
;
HRESULT
hr
;
video_presenter_get_native_video_size
(
presenter
);
return
S_OK
;
while
(
SUCCEEDED
(
hr
=
IMFTransform_GetOutputAvailableType
(
presenter
->
mixer
,
0
,
idx
++
,
&
media_type
)))
{
/* FIXME: check that d3d device supports this format */
/* FIXME: potentially adjust frame size */
if
(
SUCCEEDED
(
IMFTransform_SetOutputType
(
presenter
->
mixer
,
0
,
media_type
,
MFT_SET_TYPE_TEST_ONLY
)))
{
/* FIXME: should keep a copy internally too */
hr
=
IMFTransform_SetOutputType
(
presenter
->
mixer
,
0
,
media_type
,
0
);
IMFMediaType_Release
(
media_type
);
break
;
}
IMFMediaType_Release
(
media_type
);
}
return
hr
;
}
static
HRESULT
WINAPI
video_presenter_inner_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
obj
)
...
...
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