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
28dcc19d
Commit
28dcc19d
authored
Nov 02, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/tests: And some more tests for ReadSample() and failing requests.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
74b10b2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
mfplat.c
dlls/mfreadwrite/tests/mfplat.c
+23
-0
No files found.
dlls/mfreadwrite/tests/mfplat.c
View file @
28dcc19d
...
...
@@ -1013,6 +1013,29 @@ static void test_source_reader_from_media_source(void)
hr
=
IMFSourceReader_ReadSample
(
reader
,
0
,
0
,
&
actual_index
,
&
stream_flags
,
&
timestamp
,
&
sample
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected ReadSample result, hr %#x.
\n
"
,
hr
);
actual_index
=
~
0u
;
stream_flags
=
0
;
hr
=
IMFSourceReader_ReadSample
(
reader
,
MF_SOURCE_READER_FIRST_AUDIO_STREAM
,
0
,
&
actual_index
,
&
stream_flags
,
&
timestamp
,
&
sample
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected ReadSample result, hr %#x.
\n
"
,
hr
);
ok
(
actual_index
==
0
,
"Unexpected index %u.
\n
"
,
actual_index
);
ok
(
stream_flags
==
MF_SOURCE_READERF_ERROR
,
"Unexpected flags %#x.
\n
"
,
stream_flags
);
actual_index
=
~
0u
;
stream_flags
=
0
;
hr
=
IMFSourceReader_ReadSample
(
reader
,
MF_SOURCE_READER_FIRST_AUDIO_STREAM
,
0
,
&
actual_index
,
&
stream_flags
,
&
timestamp
,
&
sample
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected ReadSample result, hr %#x.
\n
"
,
hr
);
ok
(
actual_index
==
0
,
"Unexpected index %u.
\n
"
,
actual_index
);
ok
(
stream_flags
==
MF_SOURCE_READERF_ERROR
,
"Unexpected flags %#x.
\n
"
,
stream_flags
);
actual_index
=
~
0u
;
stream_flags
=
0
;
hr
=
IMFSourceReader_ReadSample
(
reader
,
0
,
0
,
&
actual_index
,
&
stream_flags
,
&
timestamp
,
&
sample
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected ReadSample result, hr %#x.
\n
"
,
hr
);
ok
(
actual_index
==
0
,
"Unexpected index %u.
\n
"
,
actual_index
);
ok
(
stream_flags
==
MF_SOURCE_READERF_ERROR
,
"Unexpected flags %#x.
\n
"
,
stream_flags
);
IMFSourceReader_Release
(
reader
);
IMFMediaSource_Release
(
source
);
...
...
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