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
a7594900
Commit
a7594900
authored
Aug 11, 2023
by
Ziqing Hui
Committed by
Alexandre Julliard
Aug 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement GetStreamSinkById for media sink.
parent
59adbf66
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
media_sink.c
dlls/winegstreamer/media_sink.c
+20
-2
No files found.
dlls/winegstreamer/media_sink.c
View file @
a7594900
...
...
@@ -671,9 +671,27 @@ static HRESULT WINAPI media_sink_GetStreamSinkByIndex(IMFFinalizableMediaSink *i
static
HRESULT
WINAPI
media_sink_GetStreamSinkById
(
IMFFinalizableMediaSink
*
iface
,
DWORD
stream_sink_id
,
IMFStreamSink
**
stream
)
{
FIXME
(
"iface %p, stream_sink_id %#lx, stream %p stub!
\n
"
,
iface
,
stream_sink_id
,
stream
);
struct
media_sink
*
media_sink
=
impl_from_IMFFinalizableMediaSink
(
iface
);
struct
stream_sink
*
stream_sink
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, stream_sink_id %#lx, stream %p.
\n
"
,
iface
,
stream_sink_id
,
stream
);
if
(
!
stream
)
return
E_POINTER
;
EnterCriticalSection
(
&
media_sink
->
cs
);
hr
=
MF_E_INVALIDSTREAMNUMBER
;
if
((
stream_sink
=
media_sink_get_stream_sink_by_id
(
media_sink
,
stream_sink_id
)))
{
IMFStreamSink_AddRef
((
*
stream
=
&
stream_sink
->
IMFStreamSink_iface
));
hr
=
S_OK
;
}
LeaveCriticalSection
(
&
media_sink
->
cs
);
return
hr
;
}
static
HRESULT
WINAPI
media_sink_SetPresentationClock
(
IMFFinalizableMediaSink
*
iface
,
IMFPresentationClock
*
clock
)
...
...
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