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
e483b4a3
Commit
e483b4a3
authored
Jun 18, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Use base pin reference counting methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42b3fd84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
42 deletions
+6
-42
renderer.c
dlls/strmbase/renderer.c
+2
-14
transform.c
dlls/strmbase/transform.c
+4
-28
No files found.
dlls/strmbase/renderer.c
View file @
e483b4a3
...
...
@@ -45,18 +45,6 @@ static const IQualityControlVtbl Renderer_QualityControl_Vtbl = {
QualityControlImpl_SetSink
};
static
ULONG
WINAPI
BaseRenderer_InputPin_AddRef
(
IPin
*
iface
)
{
BaseInputPin
*
pin
=
impl_BaseInputPin_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
pin
->
pin
.
pinInfo
.
pFilter
);
}
static
ULONG
WINAPI
BaseRenderer_InputPin_Release
(
IPin
*
iface
)
{
BaseInputPin
*
pin
=
impl_BaseInputPin_from_IPin
(
iface
);
return
IBaseFilter_Release
(
pin
->
pin
.
pinInfo
.
pFilter
);
}
static
HRESULT
WINAPI
BaseRenderer_InputPin_ReceiveConnection
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
)
{
BaseInputPin
*
This
=
impl_BaseInputPin_from_IPin
(
iface
);
...
...
@@ -176,8 +164,8 @@ static HRESULT WINAPI BaseRenderer_InputPin_EndFlush(IPin * iface)
static
const
IPinVtbl
BaseRenderer_InputPin_Vtbl
=
{
BaseInputPinImpl_QueryInterface
,
Base
Renderer_InputPin
_AddRef
,
Base
Renderer_InputPin
_Release
,
Base
PinImpl
_AddRef
,
Base
PinImpl
_Release
,
BaseInputPinImpl_Connect
,
BaseRenderer_InputPin_ReceiveConnection
,
BaseRenderer_InputPin_Disconnect
,
...
...
dlls/strmbase/transform.c
View file @
e483b4a3
...
...
@@ -381,18 +381,6 @@ HRESULT WINAPI TransformFilterImpl_Notify(TransformFilter *iface, IBaseFilter *s
return
QualityControlImpl_Notify
((
IQualityControl
*
)
iface
->
qcimpl
,
sender
,
qm
);
}
static
ULONG
WINAPI
TransformFilter_InputPin_AddRef
(
IPin
*
iface
)
{
BaseInputPin
*
pin
=
impl_BaseInputPin_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
pin
->
pin
.
pinInfo
.
pFilter
);
}
static
ULONG
WINAPI
TransformFilter_InputPin_Release
(
IPin
*
iface
)
{
BaseInputPin
*
pin
=
impl_BaseInputPin_from_IPin
(
iface
);
return
IBaseFilter_Release
(
pin
->
pin
.
pinInfo
.
pFilter
);
}
static
HRESULT
WINAPI
TransformFilter_InputPin_EndOfStream
(
IPin
*
iface
)
{
BaseInputPin
*
This
=
impl_BaseInputPin_from_IPin
(
iface
);
...
...
@@ -516,8 +504,8 @@ static HRESULT WINAPI TransformFilter_InputPin_NewSegment(IPin * iface, REFERENC
static
const
IPinVtbl
TransformFilter_InputPin_Vtbl
=
{
BaseInputPinImpl_QueryInterface
,
TransformFilter_InputPin
_AddRef
,
TransformFilter_InputPin
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseInputPinImpl_Connect
,
TransformFilter_InputPin_ReceiveConnection
,
TransformFilter_InputPin_Disconnect
,
...
...
@@ -555,23 +543,11 @@ static HRESULT WINAPI transform_source_QueryInterface(IPin *iface, REFIID iid, v
return
S_OK
;
}
static
ULONG
WINAPI
transform_source_AddRef
(
IPin
*
iface
)
{
BaseOutputPin
*
pin
=
impl_BaseOutputPin_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
pin
->
pin
.
pinInfo
.
pFilter
);
}
static
ULONG
WINAPI
transform_source_Release
(
IPin
*
iface
)
{
BaseOutputPin
*
pin
=
impl_BaseOutputPin_from_IPin
(
iface
);
return
IBaseFilter_Release
(
pin
->
pin
.
pinInfo
.
pFilter
);
}
static
const
IPinVtbl
TransformFilter_OutputPin_Vtbl
=
{
transform_source_QueryInterface
,
transform_source
_AddRef
,
transform_source
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseOutputPinImpl_Connect
,
BaseOutputPinImpl_ReceiveConnection
,
BaseOutputPinImpl_Disconnect
,
...
...
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