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
b5ddaa13
Commit
b5ddaa13
authored
Dec 10, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/avico: Use base sink connection methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dafe81df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
41 deletions
+17
-41
avico.c
dlls/qcap/avico.c
+17
-41
No files found.
dlls/qcap/avico.c
View file @
b5ddaa13
...
...
@@ -272,52 +272,13 @@ static const IPersistPropertyBagVtbl PersistPropertyBagVtbl = {
AVICompressorPropertyBag_Save
};
static
inline
AVICompressor
*
impl_from_IPin
(
IPin
*
iface
)
{
return
impl_from_strmbase_filter
(
CONTAINING_RECORD
(
iface
,
struct
strmbase_pin
,
IPin_iface
)
->
filter
);
}
static
HRESULT
WINAPI
AVICompressorIn_ReceiveConnection
(
IPin
*
iface
,
IPin
*
pConnector
,
const
AM_MEDIA_TYPE
*
pmt
)
{
AVICompressor
*
This
=
impl_from_IPin
(
iface
);
HRESULT
hres
;
TRACE
(
"(%p)->(%p AM_MEDIA_TYPE(%p))
\n
"
,
This
,
pConnector
,
pmt
);
hres
=
BaseInputPinImpl_ReceiveConnection
(
iface
,
pConnector
,
pmt
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
fill_format_info
(
This
,
(
VIDEOINFOHEADER
*
)
pmt
->
pbFormat
);
if
(
FAILED
(
hres
))
BaseInputPinImpl_Disconnect
(
iface
);
return
hres
;
}
static
HRESULT
WINAPI
AVICompressorIn_Disconnect
(
IPin
*
iface
)
{
AVICompressor
*
This
=
impl_from_IPin
(
iface
);
HRESULT
hres
;
TRACE
(
"(%p)
\n
"
,
This
);
hres
=
BaseInputPinImpl_Disconnect
(
iface
);
if
(
FAILED
(
hres
))
return
hres
;
heap_free
(
This
->
videoinfo
);
This
->
videoinfo
=
NULL
;
return
S_OK
;
}
static
const
IPinVtbl
AVICompressorInputPinVtbl
=
{
BasePinImpl_QueryInterface
,
BasePinImpl_AddRef
,
BasePinImpl_Release
,
BaseInputPinImpl_Connect
,
AVICompressorIn
_ReceiveConnection
,
AVICompressorIn
_Disconnect
,
BaseInputPinImpl
_ReceiveConnection
,
BaseInputPinImpl
_Disconnect
,
BasePinImpl_ConnectedTo
,
BasePinImpl_ConnectionMediaType
,
BasePinImpl_QueryPinInfo
,
...
...
@@ -465,12 +426,27 @@ static HRESULT WINAPI AVICompressorIn_Receive(struct strmbase_sink *base, IMedia
return
hres
;
}
static
HRESULT
sink_connect
(
struct
strmbase_sink
*
iface
,
IPin
*
peer
,
const
AM_MEDIA_TYPE
*
mt
)
{
AVICompressor
*
filter
=
impl_from_strmbase_pin
(
&
iface
->
pin
);
return
fill_format_info
(
filter
,
(
VIDEOINFOHEADER
*
)
mt
->
pbFormat
);
}
static
void
sink_disconnect
(
struct
strmbase_sink
*
iface
)
{
AVICompressor
*
filter
=
impl_from_strmbase_pin
(
&
iface
->
pin
);
heap_free
(
filter
->
videoinfo
);
filter
->
videoinfo
=
NULL
;
}
static
const
struct
strmbase_sink_ops
sink_ops
=
{
.
base
.
pin_query_accept
=
sink_query_accept
,
.
base
.
pin_get_media_type
=
strmbase_pin_get_media_type
,
.
base
.
pin_query_interface
=
sink_query_interface
,
.
pfnReceive
=
AVICompressorIn_Receive
,
.
sink_connect
=
sink_connect
,
.
sink_disconnect
=
sink_disconnect
,
};
static
HRESULT
source_get_media_type
(
struct
strmbase_pin
*
base
,
unsigned
int
iPosition
,
AM_MEDIA_TYPE
*
amt
)
...
...
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