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
d021b5d2
Commit
d021b5d2
authored
Jun 18, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Use strmbase pin reference counting methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e483b4a3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
44 deletions
+6
-44
filesource.c
dlls/quartz/filesource.c
+2
-14
parser.c
dlls/quartz/parser.c
+4
-16
pin.c
dlls/quartz/pin.c
+0
-12
pin.h
dlls/quartz/pin.h
+0
-2
No files found.
dlls/quartz/filesource.c
View file @
d021b5d2
...
...
@@ -777,23 +777,11 @@ static HRESULT WINAPI FileAsyncReaderPin_QueryInterface(IPin * iface, REFIID rii
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
FileAsyncReaderPin_AddRef
(
IPin
*
iface
)
{
FileAsyncReader
*
pin
=
impl_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
pin
->
pin
.
pin
.
pinInfo
.
pFilter
);
}
static
ULONG
WINAPI
FileAsyncReaderPin_Release
(
IPin
*
iface
)
{
FileAsyncReader
*
pin
=
impl_from_IPin
(
iface
);
return
IBaseFilter_Release
(
pin
->
pin
.
pin
.
pinInfo
.
pFilter
);
}
static
const
IPinVtbl
FileAsyncReaderPin_Vtbl
=
{
FileAsyncReaderPin_QueryInterface
,
FileAsyncReaderPin
_AddRef
,
FileAsyncReaderPin
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseOutputPinImpl_Connect
,
BaseOutputPinImpl_ReceiveConnection
,
BasePinImpl_Disconnect
,
...
...
dlls/quartz/parser.c
View file @
d021b5d2
...
...
@@ -564,18 +564,6 @@ static HRESULT WINAPI Parser_OutputPin_QueryInterface(IPin * iface, REFIID riid,
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
Parser_OutputPin_AddRef
(
IPin
*
iface
)
{
Parser_OutputPin
*
pin
=
unsafe_impl_Parser_OutputPin_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
pin
->
pin
.
pin
.
pinInfo
.
pFilter
);
}
static
ULONG
WINAPI
Parser_OutputPin_Release
(
IPin
*
iface
)
{
Parser_OutputPin
*
pin
=
unsafe_impl_Parser_OutputPin_from_IPin
(
iface
);
return
IBaseFilter_Release
(
pin
->
pin
.
pin
.
pinInfo
.
pFilter
);
}
static
HRESULT
WINAPI
Parser_OutputPin_Connect
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
)
{
Parser_OutputPin
*
This
=
unsafe_impl_Parser_OutputPin_from_IPin
(
iface
);
...
...
@@ -601,8 +589,8 @@ static HRESULT WINAPI Parser_OutputPin_CheckMediaType(BasePin *pin, const AM_MED
static
const
IPinVtbl
Parser_OutputPin_Vtbl
=
{
Parser_OutputPin_QueryInterface
,
Parser_OutputPin
_AddRef
,
Parser_OutputPin
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
Parser_OutputPin_Connect
,
BaseOutputPinImpl_ReceiveConnection
,
BaseOutputPinImpl_Disconnect
,
...
...
@@ -714,8 +702,8 @@ static HRESULT WINAPI Parser_PullPin_EnumMediaTypes(IPin *iface, IEnumMediaTypes
static
const
IPinVtbl
Parser_InputPin_Vtbl
=
{
Parser_PullPin_QueryInterface
,
PullPin
_AddRef
,
PullPin
_Release
,
BasePinImpl
_AddRef
,
BasePinImpl
_Release
,
BaseInputPinImpl_Connect
,
Parser_PullPin_ReceiveConnection
,
Parser_PullPin_Disconnect
,
...
...
dlls/quartz/pin.c
View file @
d021b5d2
...
...
@@ -381,18 +381,6 @@ void PullPin_destroy(PullPin *pin)
CoTaskMemFree
(
pin
);
}
ULONG
WINAPI
PullPin_AddRef
(
IPin
*
iface
)
{
PullPin
*
pin
=
impl_PullPin_from_IPin
(
iface
);
return
IBaseFilter_AddRef
(
pin
->
pin
.
pinInfo
.
pFilter
);
}
ULONG
WINAPI
PullPin_Release
(
IPin
*
iface
)
{
PullPin
*
pin
=
impl_PullPin_from_IPin
(
iface
);
return
IBaseFilter_Release
(
pin
->
pin
.
pinInfo
.
pFilter
);
}
static
void
PullPin_Flush
(
PullPin
*
This
)
{
IMediaSample
*
pSample
;
...
...
dlls/quartz/pin.h
View file @
d021b5d2
...
...
@@ -115,8 +115,6 @@ void PullPin_destroy(PullPin *pin) DECLSPEC_HIDDEN;
HRESULT
WINAPI
PullPin_ReceiveConnection
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
WINAPI
PullPin_Disconnect
(
IPin
*
iface
);
HRESULT
WINAPI
PullPin_QueryInterface
(
IPin
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
);
ULONG
WINAPI
PullPin_AddRef
(
IPin
*
iface
)
DECLSPEC_HIDDEN
;
ULONG
WINAPI
PullPin_Release
(
IPin
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
PullPin_EndOfStream
(
IPin
*
iface
);
HRESULT
WINAPI
PullPin_QueryAccept
(
IPin
*
iface
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
WINAPI
PullPin_BeginFlush
(
IPin
*
iface
);
...
...
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