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
979847e3
Commit
979847e3
authored
Nov 20, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/tests: Add a test for reading from delected stream.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8f0570b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
main.c
dlls/mfreadwrite/main.c
+2
-0
mfplat.c
dlls/mfreadwrite/tests/mfplat.c
+13
-0
No files found.
dlls/mfreadwrite/main.c
View file @
979847e3
...
...
@@ -894,6 +894,8 @@ static HRESULT source_reader_read_sample(struct source_reader *reader, DWORD ind
*
stream_flags
=
MF_SOURCE_READERF_ERROR
;
if
(
actual_index
)
*
actual_index
=
index
;
if
(
timestamp
)
*
timestamp
=
0
;
return
hr
;
}
...
...
dlls/mfreadwrite/tests/mfplat.c
View file @
979847e3
...
...
@@ -891,6 +891,19 @@ todo_wine
ok
(
!!
sample
,
"Expected sample object.
\n
"
);
IMFSample_Release
(
sample
);
/* Request from deselected stream. */
hr
=
IMFSourceReader_SetStreamSelection
(
reader
,
1
,
FALSE
);
ok
(
hr
==
S_OK
,
"Failed to select a stream, hr %#x.
\n
"
,
hr
);
actual_index
=
0
;
stream_flags
=
0
;
hr
=
IMFSourceReader_ReadSample
(
reader
,
1
,
0
,
&
actual_index
,
&
stream_flags
,
&
timestamp
,
&
sample
);
ok
(
hr
==
MF_E_INVALIDREQUEST
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
actual_index
==
1
,
"Unexpected stream index %u
\n
"
,
actual_index
);
ok
(
stream_flags
==
MF_SOURCE_READERF_ERROR
,
"Unexpected stream flags %#x.
\n
"
,
stream_flags
);
ok
(
timestamp
==
0
,
"Unexpected timestamp.
\n
"
);
ok
(
!
sample
,
"Expected sample object.
\n
"
);
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