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
e5e23044
Commit
e5e23044
authored
Sep 18, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Skip some tests if not allowed to register filters.
parent
344ef82b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
27 deletions
+32
-27
filtergraph.c
dlls/quartz/tests/filtergraph.c
+32
-27
filtermapper.c
dlls/quartz/tests/filtermapper.c
+0
-0
No files found.
dlls/quartz/tests/filtergraph.c
View file @
e5e23044
...
...
@@ -1811,39 +1811,44 @@ static void test_render_filter_priority(void)
hr
=
IFilterMapper2_RegisterFilter
(
pMapper2
,
&
CLSID_TestFilter2
,
wszFilterInstanceName2
,
NULL
,
&
CLSID_LegacyAmFilterCategory
,
NULL
,
&
rgf2
);
ok
(
hr
==
S_OK
,
"IFilterMapper2_RegisterFilter failed with %x
\n
"
,
hr
);
if
(
hr
==
E_ACCESSDENIED
)
skip
(
"Not authorized to register filters
\n
"
);
else
{
ok
(
hr
==
S_OK
,
"IFilterMapper2_RegisterFilter failed with %x
\n
"
,
hr
);
rgf2
.
dwMerit
=
MERIT_PREFERRED
;
rgPinType
[
0
].
clsMinorType
=
&
mediasubtype2
;
rgf2
.
dwMerit
=
MERIT_PREFERRED
;
rgPinType
[
0
].
clsMinorType
=
&
mediasubtype2
;
hr
=
IFilterMapper2_RegisterFilter
(
pMapper2
,
&
CLSID_TestFilter4
,
wszFilterInstanceName4
,
NULL
,
hr
=
IFilterMapper2_RegisterFilter
(
pMapper2
,
&
CLSID_TestFilter4
,
wszFilterInstanceName4
,
NULL
,
&
CLSID_LegacyAmFilterCategory
,
NULL
,
&
rgf2
);
ok
(
hr
==
S_OK
,
"IFilterMapper2_RegisterFilter failed with %x
\n
"
,
hr
);
S1
(
U
(
rgf2
)).
cPins2
=
2
;
rgPins2
[
0
].
dwFlags
=
0
;
rgPinType
[
0
].
clsMinorType
=
&
mediasubtype1
;
rgPins2
[
1
].
dwFlags
=
REG_PINFLAG_B_OUTPUT
;
rgPins2
[
1
].
cInstances
=
1
;
rgPins2
[
1
].
nMediaTypes
=
1
;
rgPins2
[
1
].
lpMediaType
=
&
rgPinType
[
1
];
rgPins2
[
1
].
nMediums
=
0
;
rgPins2
[
1
].
lpMedium
=
NULL
;
rgPins2
[
1
].
clsPinCategory
=
NULL
;
rgPinType
[
1
].
clsMajorType
=
&
MEDIATYPE_Video
;
rgPinType
[
1
].
clsMinorType
=
&
mediasubtype2
;
hr
=
IFilterMapper2_RegisterFilter
(
pMapper2
,
&
CLSID_TestFilter3
,
wszFilterInstanceName3
,
NULL
,
ok
(
hr
==
S_OK
,
"IFilterMapper2_RegisterFilter failed with %x
\n
"
,
hr
);
S1
(
U
(
rgf2
)).
cPins2
=
2
;
rgPins2
[
0
].
dwFlags
=
0
;
rgPinType
[
0
].
clsMinorType
=
&
mediasubtype1
;
rgPins2
[
1
].
dwFlags
=
REG_PINFLAG_B_OUTPUT
;
rgPins2
[
1
].
cInstances
=
1
;
rgPins2
[
1
].
nMediaTypes
=
1
;
rgPins2
[
1
].
lpMediaType
=
&
rgPinType
[
1
];
rgPins2
[
1
].
nMediums
=
0
;
rgPins2
[
1
].
lpMedium
=
NULL
;
rgPins2
[
1
].
clsPinCategory
=
NULL
;
rgPinType
[
1
].
clsMajorType
=
&
MEDIATYPE_Video
;
rgPinType
[
1
].
clsMinorType
=
&
mediasubtype2
;
hr
=
IFilterMapper2_RegisterFilter
(
pMapper2
,
&
CLSID_TestFilter3
,
wszFilterInstanceName3
,
NULL
,
&
CLSID_LegacyAmFilterCategory
,
NULL
,
&
rgf2
);
ok
(
hr
==
S_OK
,
"IFilterMapper2_RegisterFilter failed with %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IFilterMapper2_RegisterFilter failed with %x
\n
"
,
hr
);
hr
=
IFilterGraph2_Render
(
pgraph2
,
ptestfilter
->
ppPins
[
0
]);
ok
(
hr
==
S_OK
,
"IFilterGraph2_Render failed with %08x
\n
"
,
hr
);
hr
=
IFilterGraph2_Render
(
pgraph2
,
ptestfilter
->
ppPins
[
0
]);
ok
(
hr
==
S_OK
,
"IFilterGraph2_Render failed with %08x
\n
"
,
hr
);
get_connected_filter_name
(
ptestfilter
,
ConnectedFilterName1
);
ok
(
!
lstrcmp
(
ConnectedFilterName1
,
"TestfilterInstance3"
),
"unexpected connected filter: %s
\n
"
,
ConnectedFilterName1
);
get_connected_filter_name
(
ptestfilter
,
ConnectedFilterName1
);
ok
(
!
lstrcmp
(
ConnectedFilterName1
,
"TestfilterInstance3"
),
"unexpected connected filter: %s
\n
"
,
ConnectedFilterName1
);
}
hr
=
IFilterMapper2_UnregisterFilter
(
pMapper2
,
&
CLSID_LegacyAmFilterCategory
,
NULL
,
&
CLSID_TestFilter2
);
...
...
dlls/quartz/tests/filtermapper.c
View file @
e5e23044
This diff is collapsed.
Click to expand it.
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