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
7fe02c47
Commit
7fe02c47
authored
Mar 26, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Mar 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream/tests: Add some tests to retreive media streams to media stream filter.
parent
6db90e0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
amstream.c
dlls/amstream/tests/amstream.c
+20
-0
No files found.
dlls/amstream/tests/amstream.c
View file @
7fe02c47
...
...
@@ -211,6 +211,16 @@ static void test_media_streams(void)
hr
=
IAMMultiMediaStream_GetMediaStream
(
pams
,
&
MSPID_PrimaryVideo
,
&
video_stream
);
ok
(
hr
==
S_OK
,
"IAMMultiMediaStream_GetMediaStream returned: %x
\n
"
,
hr
);
/* Verify the video stream has been added to the media stream filter */
if
(
media_stream_filter
)
{
hr
=
IMediaStreamFilter_GetMediaStream
(
media_stream_filter
,
&
MSPID_PrimaryVideo
,
&
dummy_stream
);
todo_wine
ok
(
hr
==
S_OK
,
"IMediaStreamFilter_GetMediaStream returned: %x
\n
"
,
hr
);
todo_wine
ok
(
dummy_stream
==
video_stream
,
"Got wrong returned pointer %p, expected %p
\n
"
,
dummy_stream
,
video_stream
);
if
(
SUCCEEDED
(
hr
))
IMediaStream_Release
(
dummy_stream
);
}
/* Verify there is no audio media stream */
hr
=
IAMMultiMediaStream_GetMediaStream
(
pams
,
&
MSPID_PrimaryAudio
,
&
audio_stream
);
ok
(
hr
==
MS_E_NOSTREAM
,
"IAMMultiMediaStream_GetMediaStream returned: %x
\n
"
,
hr
);
...
...
@@ -227,6 +237,16 @@ static void test_media_streams(void)
hr
=
IAMMultiMediaStream_GetMediaStream
(
pams
,
&
MSPID_PrimaryAudio
,
&
audio_stream
);
ok
(
hr
==
S_OK
,
"IAMMultiMediaStream_GetMediaStream returned: %x
\n
"
,
hr
);
/* verify the audio stream has been added to the media stream filter */
if
(
media_stream_filter
)
{
hr
=
IMediaStreamFilter_GetMediaStream
(
media_stream_filter
,
&
MSPID_PrimaryAudio
,
&
dummy_stream
);
todo_wine
ok
(
hr
==
S_OK
,
"IAMMultiMediaStream_GetMediaStream returned: %x
\n
"
,
hr
);
todo_wine
ok
(
dummy_stream
==
audio_stream
,
"Got wrong returned pointer %p, expected %p
\n
"
,
dummy_stream
,
audio_stream
);
if
(
SUCCEEDED
(
hr
))
IMediaStream_Release
(
dummy_stream
);
}
/* Verify behaviour with invalid purpose id */
hr
=
IAMMultiMediaStream_GetMediaStream
(
pams
,
&
IID_IUnknown
,
&
dummy_stream
);
ok
(
hr
==
MS_E_NOSTREAM
,
"IAMMultiMediaStream_GetMediaStream returned: %x
\n
"
,
hr
);
...
...
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