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
bd00160c
Commit
bd00160c
authored
Jun 18, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Use strmbase pin reference counting methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d021b5d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
114 deletions
+16
-114
avico.c
dlls/qcap/avico.c
+4
-28
avimux.c
dlls/qcap/avimux.c
+4
-28
smartteefilter.c
dlls/qcap/smartteefilter.c
+6
-43
vfwcapture.c
dlls/qcap/vfwcapture.c
+2
-15
No files found.
dlls/qcap/avico.c
View file @
bd00160c
...
...
@@ -323,18 +323,6 @@ static HRESULT WINAPI AVICompressorIn_QueryInterface(IPin *iface, REFIID riid, v
return
BaseInputPinImpl_QueryInterface
(
iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AVICompressorIn_AddRef
(
IPin
*
iface
)
{
AVICompressor
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
ULONG
WINAPI
AVICompressorIn_Release
(
IPin
*
iface
)
{
AVICompressor
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
HRESULT
WINAPI
AVICompressorIn_ReceiveConnection
(
IPin
*
iface
,
IPin
*
pConnector
,
const
AM_MEDIA_TYPE
*
pmt
)
{
...
...
@@ -372,8 +360,8 @@ static HRESULT WINAPI AVICompressorIn_Disconnect(IPin *iface)
static
const
IPinVtbl
AVICompressorInputPinVtbl
=
{
AVICompressorIn_QueryInterface
,
AVICompressorIn
_AddRef
,
AVICompressorIn
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseInputPinImpl_Connect
,
AVICompressorIn_ReceiveConnection
,
AVICompressorIn_Disconnect
,
...
...
@@ -524,22 +512,10 @@ static HRESULT WINAPI AVICompressorOut_QueryInterface(IPin *iface, REFIID riid,
return
BaseInputPinImpl_QueryInterface
(
iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AVICompressorOut_AddRef
(
IPin
*
iface
)
{
AVICompressor
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
ULONG
WINAPI
AVICompressorOut_Release
(
IPin
*
iface
)
{
AVICompressor
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
const
IPinVtbl
AVICompressorOutputPinVtbl
=
{
AVICompressorOut_QueryInterface
,
AVICompressorOut
_AddRef
,
AVICompressorOut
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseOutputPinImpl_Connect
,
BaseOutputPinImpl_ReceiveConnection
,
BaseOutputPinImpl_Disconnect
,
...
...
dlls/qcap/avimux.c
View file @
bd00160c
...
...
@@ -1255,18 +1255,6 @@ static HRESULT WINAPI AviMuxOut_QueryInterface(IPin *iface, REFIID riid, void **
return
S_OK
;
}
static
ULONG
WINAPI
AviMuxOut_AddRef
(
IPin
*
iface
)
{
AviMux
*
This
=
impl_from_out_IPin
(
iface
);
return
IBaseFilter_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
ULONG
WINAPI
AviMuxOut_Release
(
IPin
*
iface
)
{
AviMux
*
This
=
impl_from_out_IPin
(
iface
);
return
IBaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
HRESULT
WINAPI
AviMuxOut_Connect
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
)
{
...
...
@@ -1408,8 +1396,8 @@ static HRESULT WINAPI AviMuxOut_NewSegment(IPin *iface, REFERENCE_TIME tStart,
static
const
IPinVtbl
AviMuxOut_PinVtbl
=
{
AviMuxOut_QueryInterface
,
AviMuxOut
_AddRef
,
AviMuxOut
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
AviMuxOut_Connect
,
AviMuxOut_ReceiveConnection
,
AviMuxOut_Disconnect
,
...
...
@@ -1655,18 +1643,6 @@ static HRESULT WINAPI AviMuxIn_QueryInterface(IPin *iface, REFIID riid, void **p
return
S_OK
;
}
static
ULONG
WINAPI
AviMuxIn_AddRef
(
IPin
*
iface
)
{
AviMux
*
This
=
impl_from_in_IPin
(
iface
);
return
IBaseFilter_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
ULONG
WINAPI
AviMuxIn_Release
(
IPin
*
iface
)
{
AviMux
*
This
=
impl_from_in_IPin
(
iface
);
return
IBaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
HRESULT
WINAPI
AviMuxIn_Connect
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
)
{
...
...
@@ -1876,8 +1852,8 @@ static HRESULT WINAPI AviMuxIn_NewSegment(IPin *iface, REFERENCE_TIME tStart,
static
const
IPinVtbl
AviMuxIn_PinVtbl
=
{
AviMuxIn_QueryInterface
,
AviMuxIn
_AddRef
,
AviMuxIn
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
AviMuxIn_Connect
,
AviMuxIn_ReceiveConnection
,
AviMuxIn_Disconnect
,
...
...
dlls/qcap/smartteefilter.c
View file @
bd00160c
...
...
@@ -146,23 +146,10 @@ static const BaseFilterFuncTable SmartTeeFilterFuncs = {
.
filter_destroy
=
smart_tee_destroy
,
};
static
ULONG
WINAPI
SmartTeeFilterInput_AddRef
(
IPin
*
iface
)
{
SmartTeeFilter
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
ULONG
WINAPI
SmartTeeFilterInput_Release
(
IPin
*
iface
)
{
SmartTeeFilter
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
const
IPinVtbl
SmartTeeFilterInputVtbl
=
{
BaseInputPinImpl_QueryInterface
,
SmartTeeFilterInput
_AddRef
,
SmartTeeFilterInput
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseInputPinImpl_Connect
,
BaseInputPinImpl_ReceiveConnection
,
BasePinImpl_Disconnect
,
...
...
@@ -340,18 +327,6 @@ static const BaseInputPinFuncTable SmartTeeFilterInputFuncs = {
SmartTeeFilterInput_Receive
};
static
ULONG
WINAPI
SmartTeeFilterCapture_AddRef
(
IPin
*
iface
)
{
SmartTeeFilter
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
ULONG
WINAPI
SmartTeeFilterCapture_Release
(
IPin
*
iface
)
{
SmartTeeFilter
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
HRESULT
WINAPI
SmartTeeFilterCapture_EnumMediaTypes
(
IPin
*
iface
,
IEnumMediaTypes
**
ppEnum
)
{
SmartTeeFilter
*
This
=
impl_from_IPin
(
iface
);
...
...
@@ -368,8 +343,8 @@ static HRESULT WINAPI SmartTeeFilterCapture_EnumMediaTypes(IPin *iface, IEnumMed
static
const
IPinVtbl
SmartTeeFilterCaptureVtbl
=
{
BaseOutputPinImpl_QueryInterface
,
SmartTeeFilterCapture
_AddRef
,
SmartTeeFilterCapture
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseOutputPinImpl_Connect
,
BaseOutputPinImpl_ReceiveConnection
,
BaseOutputPinImpl_Disconnect
,
...
...
@@ -423,18 +398,6 @@ static const BaseOutputPinFuncTable SmartTeeFilterCaptureFuncs = {
SmartTeeFilterCapture_DecideAllocator
,
};
static
ULONG
WINAPI
SmartTeeFilterPreview_AddRef
(
IPin
*
iface
)
{
SmartTeeFilter
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
ULONG
WINAPI
SmartTeeFilterPreview_Release
(
IPin
*
iface
)
{
SmartTeeFilter
*
This
=
impl_from_IPin
(
iface
);
return
IBaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
}
static
HRESULT
WINAPI
SmartTeeFilterPreview_EnumMediaTypes
(
IPin
*
iface
,
IEnumMediaTypes
**
ppEnum
)
{
SmartTeeFilter
*
This
=
impl_from_IPin
(
iface
);
...
...
@@ -451,8 +414,8 @@ static HRESULT WINAPI SmartTeeFilterPreview_EnumMediaTypes(IPin *iface, IEnumMed
static
const
IPinVtbl
SmartTeeFilterPreviewVtbl
=
{
BaseOutputPinImpl_QueryInterface
,
SmartTeeFilterPreview
_AddRef
,
SmartTeeFilterPreview
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseOutputPinImpl_Connect
,
BaseOutputPinImpl_ReceiveConnection
,
BaseOutputPinImpl_Disconnect
,
...
...
dlls/qcap/vfwcapture.c
View file @
bd00160c
...
...
@@ -677,19 +677,6 @@ static HRESULT WINAPI VfwPin_QueryInterface(IPin * iface, REFIID riid, LPVOID *
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
VfwPin_AddRef
(
IPin
*
iface
)
{
VfwPinImpl
*
pin
=
impl_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
pin
->
pin
.
pin
.
pinInfo
.
pFilter
);
}
static
ULONG
WINAPI
VfwPin_Release
(
IPin
*
iface
)
{
VfwPinImpl
*
pin
=
impl_from_IPin
(
iface
);
return
IBaseFilter_Release
(
pin
->
pin
.
pin
.
pinInfo
.
pFilter
);
}
static
HRESULT
WINAPI
VfwPin_EnumMediaTypes
(
IPin
*
iface
,
IEnumMediaTypes
**
ppEnum
)
{
...
...
@@ -716,8 +703,8 @@ VfwPin_QueryInternalConnections(IPin * iface, IPin ** apPin, ULONG * cPin)
static
const
IPinVtbl
VfwPin_Vtbl
=
{
VfwPin_QueryInterface
,
VfwPin
_AddRef
,
VfwPin
_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