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
3368abd3
Commit
3368abd3
authored
Apr 21, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Implement prerolling for SAR stream.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0d201a21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
sar.c
dlls/mf/sar.c
+16
-2
No files found.
dlls/mf/sar.c
View file @
3368abd3
...
...
@@ -391,6 +391,14 @@ static const IMFMediaSinkVtbl audio_renderer_sink_vtbl =
audio_renderer_sink_Shutdown
,
};
static
void
audio_renderer_preroll
(
struct
audio_renderer
*
renderer
)
{
int
i
;
for
(
i
=
0
;
i
<
2
;
++
i
)
IMFMediaEventQueue_QueueEventParamVar
(
renderer
->
stream_event_queue
,
MEStreamSinkRequestSample
,
&
GUID_NULL
,
S_OK
,
NULL
);
}
static
HRESULT
WINAPI
audio_renderer_preroll_QueryInterface
(
IMFMediaSinkPreroll
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
audio_renderer
*
renderer
=
impl_from_IMFMediaSinkPreroll
(
iface
);
...
...
@@ -411,9 +419,15 @@ static ULONG WINAPI audio_renderer_preroll_Release(IMFMediaSinkPreroll *iface)
static
HRESULT
WINAPI
audio_renderer_preroll_NotifyPreroll
(
IMFMediaSinkPreroll
*
iface
,
MFTIME
start_time
)
{
FIXME
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
start_time
)
);
struct
audio_renderer
*
renderer
=
impl_from_IMFMediaSinkPreroll
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
start_time
));
if
(
renderer
->
is_shut_down
)
return
MF_E_SHUTDOWN
;
audio_renderer_preroll
(
renderer
);
return
IMFMediaEventQueue_QueueEventParamVar
(
renderer
->
stream_event_queue
,
MEStreamSinkPrerolled
,
&
GUID_NULL
,
S_OK
,
NULL
);
}
static
const
IMFMediaSinkPrerollVtbl
audio_renderer_preroll_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