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
983a6cc4
Commit
983a6cc4
authored
Apr 22, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Make SAR stream request some samples on restart.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
32d17f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
sar.c
dlls/mf/sar.c
+5
-1
No files found.
dlls/mf/sar.c
View file @
983a6cc4
...
...
@@ -612,6 +612,7 @@ static HRESULT WINAPI audio_renderer_clock_sink_OnClockPause(IMFClockStateSink *
static
HRESULT
WINAPI
audio_renderer_clock_sink_OnClockRestart
(
IMFClockStateSink
*
iface
,
MFTIME
systime
)
{
struct
audio_renderer
*
renderer
=
impl_from_IMFClockStateSink
(
iface
);
BOOL
preroll
=
FALSE
;
HRESULT
hr
=
S_OK
;
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
systime
));
...
...
@@ -619,7 +620,7 @@ static HRESULT WINAPI audio_renderer_clock_sink_OnClockRestart(IMFClockStateSink
EnterCriticalSection
(
&
renderer
->
cs
);
if
(
renderer
->
audio_client
)
{
if
(
renderer
->
state
==
STREAM_STATE_PAUSED
)
if
(
(
preroll
=
(
renderer
->
state
!=
STREAM_STATE_RUNNING
))
)
{
if
(
FAILED
(
hr
=
IAudioClient_Start
(
renderer
->
audio_client
)))
WARN
(
"Failed to start audio client, hr %#x.
\n
"
,
hr
);
...
...
@@ -630,6 +631,9 @@ static HRESULT WINAPI audio_renderer_clock_sink_OnClockRestart(IMFClockStateSink
hr
=
MF_E_NOT_INITIALIZED
;
IMFMediaEventQueue_QueueEventParamVar
(
renderer
->
stream_event_queue
,
MEStreamSinkStarted
,
&
GUID_NULL
,
hr
,
NULL
);
if
(
preroll
)
audio_renderer_preroll
(
renderer
);
LeaveCriticalSection
(
&
renderer
->
cs
);
return
hr
;
...
...
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