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
3000b6ea
Commit
3000b6ea
authored
May 13, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/sar: Implement stream flushing.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3d51816d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
sar.c
dlls/mf/sar.c
+23
-2
No files found.
dlls/mf/sar.c
View file @
3000b6ea
...
...
@@ -1396,9 +1396,30 @@ static HRESULT WINAPI audio_renderer_stream_PlaceMarker(IMFStreamSink *iface, MF
static
HRESULT
WINAPI
audio_renderer_stream_Flush
(
IMFStreamSink
*
iface
)
{
FIXME
(
"%p.
\n
"
,
iface
);
struct
audio_renderer
*
renderer
=
impl_from_IMFStreamSink
(
iface
);
struct
queued_object
*
obj
,
*
obj2
;
HRESULT
hr
=
S_OK
;
return
E_NOTIMPL
;
TRACE
(
"%p.
\n
"
,
iface
);
EnterCriticalSection
(
&
renderer
->
cs
);
if
(
renderer
->
flags
&
SAR_SHUT_DOWN
)
hr
=
MF_E_STREAMSINK_REMOVED
;
else
{
LIST_FOR_EACH_ENTRY_SAFE
(
obj
,
obj2
,
&
renderer
->
queue
,
struct
queued_object
,
entry
)
{
if
(
obj
->
type
==
OBJECT_TYPE_MARKER
)
{
IMFMediaEventQueue_QueueEventParamVar
(
renderer
->
stream_event_queue
,
MEStreamSinkMarker
,
&
GUID_NULL
,
S_OK
,
&
obj
->
u
.
marker
.
context
);
}
release_pending_object
(
obj
);
}
}
LeaveCriticalSection
(
&
renderer
->
cs
);
return
hr
;
}
static
const
IMFStreamSinkVtbl
audio_renderer_stream_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