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
2ddc3e47
Commit
2ddc3e47
authored
Jun 15, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Test autoplugging order.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cdab25b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+34
-0
No files found.
dlls/quartz/tests/filtergraph.c
View file @
2ddc3e47
...
...
@@ -800,6 +800,7 @@ struct testpin
const
AM_MEDIA_TYPE
*
types
;
unsigned
int
type_count
,
enum_idx
;
AM_MEDIA_TYPE
*
request_mt
,
*
accept_mt
;
const
struct
testpin
*
require_connected_pin
;
HRESULT
Connect_hr
;
HRESULT
EnumMediaTypes_hr
;
...
...
@@ -1059,6 +1060,9 @@ static HRESULT WINAPI testsink_ReceiveConnection(IPin *iface, IPin *peer, const
if
(
pin
->
accept_mt
&&
memcmp
(
pin
->
accept_mt
,
mt
,
sizeof
(
*
mt
)))
return
VFW_E_TYPE_NOT_ACCEPTED
;
if
(
pin
->
require_connected_pin
&&
!
pin
->
require_connected_pin
->
peer
)
return
VFW_E_TYPE_NOT_ACCEPTED
;
pin
->
peer
=
peer
;
IPin_AddRef
(
peer
);
return
S_OK
;
...
...
@@ -1112,6 +1116,9 @@ static HRESULT WINAPI testsource_Connect(IPin *iface, IPin *peer, const AM_MEDIA
if
(
FAILED
(
pin
->
Connect_hr
))
return
pin
->
Connect_hr
;
if
(
pin
->
require_connected_pin
&&
!
pin
->
require_connected_pin
->
peer
)
return
VFW_E_NO_ACCEPTABLE_TYPES
;
ok
(
!
mt
,
"Got media type %p.
\n
"
,
mt
);
if
(
SUCCEEDED
(
hr
=
IPin_ReceiveConnection
(
peer
,
&
pin
->
IPin_iface
,
pin
->
request_mt
)))
...
...
@@ -2338,6 +2345,33 @@ todo_wine
ref
=
IFilterGraph2_Release
(
graph
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
/* The graph connects from source to sink, not from sink to source. */
graph
=
create_graph
();
IFilterGraph2_AddFilter
(
graph
,
&
source
.
IBaseFilter_iface
,
L"source"
);
IFilterGraph2_AddFilter
(
graph
,
&
parser1
.
IBaseFilter_iface
,
L"parser"
);
IFilterGraph2_AddFilter
(
graph
,
&
sink
.
IBaseFilter_iface
,
L"sink"
);
parser1_pins
[
0
].
require_connected_pin
=
&
parser1_pins
[
1
];
hr
=
IFilterGraph2_Connect
(
graph
,
&
source_pin
.
IPin_iface
,
&
sink_pin
.
IPin_iface
);
ok
(
hr
==
VFW_E_CANNOT_CONNECT
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
!
source_pin
.
peer
,
"Got peer %p.
\n
"
,
source_pin
.
peer
);
ok
(
!
sink_pin
.
peer
,
"Got peer %p.
\n
"
,
sink_pin
.
peer
);
parser1_pins
[
0
].
require_connected_pin
=
NULL
;
parser1_pins
[
1
].
require_connected_pin
=
&
parser1_pins
[
0
];
hr
=
IFilterGraph2_Connect
(
graph
,
&
source_pin
.
IPin_iface
,
&
sink_pin
.
IPin_iface
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
source_pin
.
peer
==
&
parser1_pins
[
0
].
IPin_iface
,
"Got peer %p.
\n
"
,
source_pin
.
peer
);
ok
(
sink_pin
.
peer
==
&
parser1_pins
[
1
].
IPin_iface
,
"Got peer %p.
\n
"
,
sink_pin
.
peer
);
parser1_pins
[
1
].
require_connected_pin
=
NULL
;
ref
=
IFilterGraph2_Release
(
graph
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
/* Test enumeration of filters from the registry. */
graph
=
create_graph
();
...
...
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