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
3ba3d228
Commit
3ba3d228
authored
Jun 24, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr: Implement MFT_MESSAGE_SET_D3D_MANAGER for default mixer.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
290e1a11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
mixer.c
dlls/evr/mixer.c
+31
-2
No files found.
dlls/evr/mixer.c
View file @
3ba3d228
...
...
@@ -21,6 +21,7 @@
#include "wine/debug.h"
#include "evr.h"
#include "d3d9.h"
#include "dxva2api.h"
#include "mfapi.h"
#include "mferror.h"
...
...
@@ -47,6 +48,9 @@ struct video_mixer
struct
input_stream
inputs
[
MAX_MIXER_INPUT_STREAMS
];
unsigned
int
input_ids
[
MAX_MIXER_INPUT_STREAMS
];
unsigned
int
input_count
;
IDirect3DDeviceManager9
*
device_manager
;
CRITICAL_SECTION
cs
;
};
...
...
@@ -151,6 +155,8 @@ static ULONG WINAPI video_mixer_transform_Release(IMFTransform *iface)
if
(
mixer
->
inputs
[
i
].
attributes
)
IMFAttributes_Release
(
mixer
->
inputs
[
i
].
attributes
);
}
if
(
mixer
->
device_manager
)
IDirect3DDeviceManager9_Release
(
mixer
->
device_manager
);
DeleteCriticalSection
(
&
mixer
->
cs
);
free
(
mixer
);
}
...
...
@@ -444,9 +450,32 @@ static HRESULT WINAPI video_mixer_transform_ProcessEvent(IMFTransform *iface, DW
static
HRESULT
WINAPI
video_mixer_transform_ProcessMessage
(
IMFTransform
*
iface
,
MFT_MESSAGE_TYPE
message
,
ULONG_PTR
param
)
{
FIXME
(
"%p, %u, %#lx.
\n
"
,
iface
,
message
,
param
);
struct
video_mixer
*
mixer
=
impl_from_IMFTransform
(
iface
);
HRESULT
hr
=
S_OK
;
return
E_NOTIMPL
;
TRACE
(
"%p, %u, %#lx.
\n
"
,
iface
,
message
,
param
);
switch
(
message
)
{
case
MFT_MESSAGE_SET_D3D_MANAGER
:
EnterCriticalSection
(
&
mixer
->
cs
);
if
(
mixer
->
device_manager
)
IDirect3DDeviceManager9_Release
(
mixer
->
device_manager
);
mixer
->
device_manager
=
NULL
;
if
(
param
)
hr
=
IUnknown_QueryInterface
((
IUnknown
*
)
param
,
&
IID_IDirect3DDeviceManager9
,
(
void
**
)
&
mixer
->
device_manager
);
LeaveCriticalSection
(
&
mixer
->
cs
);
break
;
default:
WARN
(
"Message not handled %d.
\n
"
,
message
);
hr
=
E_NOTIMPL
;
}
return
hr
;
}
static
HRESULT
WINAPI
video_mixer_transform_ProcessInput
(
IMFTransform
*
iface
,
DWORD
id
,
IMFSample
*
sample
,
DWORD
flags
)
...
...
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