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
ee7b3172
Commit
ee7b3172
authored
Apr 03, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite: Block recurring flush calls in async mode when flush is pending.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42edc14e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
reader.c
dlls/mfreadwrite/reader.c
+3
-0
mfplat.c
dlls/mfreadwrite/tests/mfplat.c
+7
-0
No files found.
dlls/mfreadwrite/reader.c
View file @
ee7b3172
...
...
@@ -1710,6 +1710,9 @@ static HRESULT source_reader_flush_async(struct source_reader *reader, unsigned
unsigned
int
stream_index
;
HRESULT
hr
;
if
(
reader
->
flags
&
SOURCE_READER_FLUSHING
)
return
MF_E_INVALIDREQUEST
;
switch
(
index
)
{
case
MF_SOURCE_READER_FIRST_VIDEO_STREAM
:
...
...
dlls/mfreadwrite/tests/mfplat.c
View file @
ee7b3172
...
...
@@ -951,6 +951,13 @@ todo_wine
hr
=
IMFSourceReader_ReadSample
(
reader
,
0
,
0
,
NULL
,
NULL
,
NULL
,
&
sample
);
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#x.
\n
"
,
hr
);
/* Flush() arguments validation. */
hr
=
IMFSourceReader_Flush
(
reader
,
123
);
ok
(
hr
==
MF_E_INVALIDSTREAMNUMBER
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFSourceReader_ReadSample
(
reader
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
MF_E_NOTACCEPTING
,
"Unexpected hr %#x.
\n
"
,
hr
);
IMFSourceReader_Release
(
reader
);
}
...
...
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