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
8e1761ad
Commit
8e1761ad
authored
Apr 01, 2020
by
Derek Lesho
Committed by
Alexandre Julliard
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite: Fix flushing on MF_SOURCE_READER_ALL_STREAMS.
Signed-off-by:
Derek Lesho
<
dlesho@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5fcd2039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
reader.c
dlls/mfreadwrite/reader.c
+18
-3
No files found.
dlls/mfreadwrite/reader.c
View file @
8e1761ad
...
...
@@ -1001,11 +1001,26 @@ static void source_reader_release_responses(struct source_reader *reader, struct
static
void
source_reader_flush_stream
(
struct
source_reader
*
reader
,
DWORD
stream_index
)
{
struct
media_stream
*
stream
=
stream_index
==
MF_SOURCE_READER_ALL_STREAMS
?
NULL
:
&
reader
->
streams
[
stream_index
];
unsigned
int
i
;
source_reader_release_responses
(
reader
,
stream
);
if
(
stream
->
decoder
)
IMFTransform_ProcessMessage
(
stream
->
decoder
,
MFT_MESSAGE_COMMAND_FLUSH
,
0
);
stream
->
requests
=
0
;
if
(
stream
)
{
if
(
stream
->
decoder
)
IMFTransform_ProcessMessage
(
stream
->
decoder
,
MFT_MESSAGE_COMMAND_FLUSH
,
0
);
stream
->
requests
=
0
;
}
else
{
for
(
i
=
0
;
i
<
reader
->
stream_count
;
i
++
)
{
if
(
reader
->
streams
[
i
].
decoder
)
IMFTransform_ProcessMessage
(
reader
->
streams
[
i
].
decoder
,
MFT_MESSAGE_COMMAND_FLUSH
,
0
);
reader
->
streams
[
i
].
requests
=
0
;
}
}
}
static
HRESULT
source_reader_flush
(
struct
source_reader
*
reader
,
unsigned
int
index
)
...
...
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