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
cdf8118a
Commit
cdf8118a
authored
Jul 09, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/mixer: Request EVR event sink.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
34d45352
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
+34
-4
mixer.c
dlls/evr/mixer.c
+34
-4
No files found.
dlls/evr/mixer.c
View file @
cdf8118a
...
...
@@ -73,6 +73,8 @@ struct video_mixer
IDirect3DDeviceManager9
*
device_manager
;
IMediaEventSink
*
event_sink
;
CRITICAL_SECTION
cs
;
};
...
...
@@ -899,16 +901,44 @@ static ULONG WINAPI video_mixer_service_client_Release(IMFTopologyServiceLookupC
static
HRESULT
WINAPI
video_mixer_service_client_InitServicePointers
(
IMFTopologyServiceLookupClient
*
iface
,
IMFTopologyServiceLookup
*
service_lookup
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
service_lookup
);
struct
video_mixer
*
mixer
=
impl_from_IMFTopologyServiceLookupClient
(
iface
);
unsigned
int
count
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
service_lookup
);
if
(
!
service_lookup
)
return
E_POINTER
;
EnterCriticalSection
(
&
mixer
->
cs
);
count
=
1
;
if
(
FAILED
(
hr
=
IMFTopologyServiceLookup_LookupService
(
service_lookup
,
MF_SERVICE_LOOKUP_GLOBAL
,
0
,
&
MR_VIDEO_RENDER_SERVICE
,
&
IID_IMediaEventSink
,
(
void
**
)
&
mixer
->
event_sink
,
&
count
)))
{
WARN
(
"Failed to get renderer event sink, hr %#x.
\n
"
,
hr
);
}
LeaveCriticalSection
(
&
mixer
->
cs
);
return
hr
;
}
static
HRESULT
WINAPI
video_mixer_service_client_ReleaseServicePointers
(
IMFTopologyServiceLookupClient
*
iface
)
{
FIXME
(
"%p.
\n
"
,
iface
);
struct
video_mixer
*
mixer
=
impl_from_IMFTopologyServiceLookupClient
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p.
\n
"
,
iface
);
EnterCriticalSection
(
&
mixer
->
cs
);
if
(
mixer
->
event_sink
)
IMediaEventSink_Release
(
mixer
->
event_sink
);
mixer
->
event_sink
=
NULL
;
LeaveCriticalSection
(
&
mixer
->
cs
);
return
S_OK
;
}
static
const
IMFTopologyServiceLookupClientVtbl
video_mixer_service_client_vtbl
=
...
...
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