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
2ff7160c
Commit
2ff7160c
authored
Sep 07, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/session: Add support for MR_VIDEO_RENDER_SERVICE service.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
951240cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
session.c
dlls/mf/session.c
+52
-0
No files found.
dlls/mf/session.c
View file @
2ff7160c
...
...
@@ -24,6 +24,7 @@
#include "windef.h"
#include "winbase.h"
#include "mfidl.h"
#include "evr.h"
#include "wine/debug.h"
#include "wine/heap.h"
...
...
@@ -1794,6 +1795,57 @@ static HRESULT WINAPI session_get_service_GetService(IMFGetService *iface, REFGU
{
return
IMFLocalMFTRegistration_QueryInterface
(
&
local_mft_registration
,
riid
,
obj
);
}
else
if
(
IsEqualGUID
(
service
,
&
MR_VIDEO_RENDER_SERVICE
))
{
IMFStreamSink
*
stream_sink
;
IMFTopologyNode
*
node
;
IUnknown
*
vr
,
*
object
;
IMFCollection
*
nodes
;
IMFMediaSink
*
sink
;
unsigned
int
i
=
0
;
HRESULT
hr
;
EnterCriticalSection
(
&
session
->
cs
);
/* Use first sink to support IMFVideoRenderer. */
if
(
session
->
presentation
.
current_topology
)
{
if
(
SUCCEEDED
(
IMFTopology_GetOutputNodeCollection
(
session
->
presentation
.
current_topology
,
&
nodes
)))
{
while
(
IMFCollection_GetElement
(
nodes
,
i
++
,
(
IUnknown
**
)
&
node
)
==
S_OK
)
{
if
(
SUCCEEDED
(
IMFTopologyNode_GetObject
(
node
,
&
object
)))
{
if
(
SUCCEEDED
(
IUnknown_QueryInterface
(
object
,
&
IID_IMFStreamSink
,
(
void
**
)
&
stream_sink
)))
{
if
(
SUCCEEDED
(
IMFStreamSink_GetMediaSink
(
stream_sink
,
&
sink
)))
{
if
(
SUCCEEDED
(
IMFMediaSink_QueryInterface
(
sink
,
&
IID_IMFVideoRenderer
,
(
void
**
)
&
vr
)))
{
if
(
FAILED
(
hr
=
MFGetService
(
vr
,
service
,
riid
,
obj
)))
WARN
(
"Failed to get service from video renderer %#x.
\n
"
,
hr
);
IUnknown_Release
(
vr
);
}
}
IMFStreamSink_Release
(
stream_sink
);
}
IUnknown_Release
(
object
);
}
IMFTopologyNode_Release
(
node
);
if
(
*
obj
)
break
;
}
IMFCollection_Release
(
nodes
);
}
}
LeaveCriticalSection
(
&
session
->
cs
);
}
else
FIXME
(
"Unsupported service %s.
\n
"
,
debugstr_guid
(
service
));
...
...
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