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
b9a5b7a3
Commit
b9a5b7a3
authored
Feb 03, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Use BaseOutputPinImpl_AttemptConnection().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
570e0a0d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
55 deletions
+15
-55
videorenderer.c
dlls/quartz/tests/videorenderer.c
+5
-18
vmr7.c
dlls/quartz/tests/vmr7.c
+5
-18
vmr9.c
dlls/quartz/tests/vmr9.c
+5
-19
No files found.
dlls/quartz/tests/videorenderer.c
View file @
b9a5b7a3
...
...
@@ -522,31 +522,18 @@ static HRESULT testsource_query_accept(struct strmbase_pin *iface, const AM_MEDI
return
S_OK
;
}
static
HRESULT
WINAPI
testsource_
AttemptConnection
(
struct
strmbase_source
*
iface
,
I
Pin
*
peer
,
const
AM_MEDIA_TYPE
*
mt
)
static
HRESULT
WINAPI
testsource_
DecideAllocator
(
struct
strmbase_source
*
iface
,
I
MemInputPin
*
peer
,
IMemAllocator
**
allocator
)
{
HRESULT
hr
;
iface
->
pin
.
peer
=
peer
;
IPin_AddRef
(
peer
);
CopyMediaType
(
&
iface
->
pin
.
mt
,
mt
);
if
(
FAILED
(
hr
=
IPin_ReceiveConnection
(
peer
,
&
iface
->
pin
.
IPin_iface
,
mt
)))
{
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
IPin_Release
(
peer
);
iface
->
pin
.
peer
=
NULL
;
FreeMediaType
(
&
iface
->
pin
.
mt
);
}
return
hr
;
return
S_OK
;
}
static
const
struct
strmbase_source_ops
testsource_ops
=
{
.
base
.
pin_query_accept
=
testsource_query_accept
,
.
base
.
pin_get_media_type
=
strmbase_pin_get_media_type
,
.
pfnAttemptConnection
=
testsource_AttemptConnection
,
.
pfnAttemptConnection
=
BaseOutputPinImpl_AttemptConnection
,
.
pfnDecideAllocator
=
testsource_DecideAllocator
,
};
static
void
testfilter_init
(
struct
testfilter
*
filter
)
...
...
dlls/quartz/tests/vmr7.c
View file @
b9a5b7a3
...
...
@@ -872,31 +872,18 @@ static HRESULT testsource_query_accept(struct strmbase_pin *iface, const AM_MEDI
return
S_OK
;
}
static
HRESULT
WINAPI
testsource_
AttemptConnection
(
struct
strmbase_source
*
iface
,
I
Pin
*
peer
,
const
AM_MEDIA_TYPE
*
mt
)
static
HRESULT
WINAPI
testsource_
DecideAllocator
(
struct
strmbase_source
*
iface
,
I
MemInputPin
*
peer
,
IMemAllocator
**
allocator
)
{
HRESULT
hr
;
iface
->
pin
.
peer
=
peer
;
IPin_AddRef
(
peer
);
CopyMediaType
(
&
iface
->
pin
.
mt
,
mt
);
if
(
FAILED
(
hr
=
IPin_ReceiveConnection
(
peer
,
&
iface
->
pin
.
IPin_iface
,
mt
)))
{
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
IPin_Release
(
peer
);
iface
->
pin
.
peer
=
NULL
;
FreeMediaType
(
&
iface
->
pin
.
mt
);
}
return
hr
;
return
S_OK
;
}
static
const
struct
strmbase_source_ops
testsource_ops
=
{
.
base
.
pin_query_accept
=
testsource_query_accept
,
.
base
.
pin_get_media_type
=
strmbase_pin_get_media_type
,
.
pfnAttemptConnection
=
testsource_AttemptConnection
,
.
pfnAttemptConnection
=
BaseOutputPinImpl_AttemptConnection
,
.
pfnDecideAllocator
=
testsource_DecideAllocator
,
};
static
void
testfilter_init
(
struct
testfilter
*
filter
)
...
...
dlls/quartz/tests/vmr9.c
View file @
b9a5b7a3
...
...
@@ -876,32 +876,18 @@ static HRESULT testsource_query_accept(struct strmbase_pin *iface, const AM_MEDI
return
S_OK
;
}
static
HRESULT
WINAPI
testsource_
AttemptConnection
(
struct
strmbase_source
*
iface
,
I
Pin
*
peer
,
const
AM_MEDIA_TYPE
*
mt
)
static
HRESULT
WINAPI
testsource_
DecideAllocator
(
struct
strmbase_source
*
iface
,
I
MemInputPin
*
peer
,
IMemAllocator
**
allocator
)
{
HRESULT
hr
;
iface
->
pin
.
peer
=
peer
;
IPin_AddRef
(
peer
);
CopyMediaType
(
&
iface
->
pin
.
mt
,
mt
);
if
(
FAILED
(
hr
=
IPin_ReceiveConnection
(
peer
,
&
iface
->
pin
.
IPin_iface
,
mt
)))
{
todo_wine_if
(((
VIDEOINFOHEADER
*
)
mt
->
pbFormat
)
->
bmiHeader
.
biBitCount
==
24
)
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
||
hr
==
E_FAIL
,
"Got hr %#x.
\n
"
,
hr
);
IPin_Release
(
peer
);
iface
->
pin
.
peer
=
NULL
;
FreeMediaType
(
&
iface
->
pin
.
mt
);
}
return
hr
;
return
S_OK
;
}
static
const
struct
strmbase_source_ops
testsource_ops
=
{
.
base
.
pin_query_accept
=
testsource_query_accept
,
.
base
.
pin_get_media_type
=
strmbase_pin_get_media_type
,
.
pfnAttemptConnection
=
testsource_AttemptConnection
,
.
pfnAttemptConnection
=
BaseOutputPinImpl_AttemptConnection
,
.
pfnDecideAllocator
=
testsource_DecideAllocator
,
};
static
void
testfilter_init
(
struct
testfilter
*
filter
)
...
...
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