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
b9735fc6
Commit
b9735fc6
authored
May 23, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/filesource: Use BaseFilterImpl_Release().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3c98e11b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
33 deletions
+26
-33
filesource.c
dlls/quartz/filesource.c
+26
-33
No files found.
dlls/quartz/filesource.c
View file @
b9735fc6
...
...
@@ -403,8 +403,32 @@ static IPin *async_reader_get_pin(BaseFilter *iface, unsigned int index)
return
This
->
pOutputPin
;
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
static
void
async_reader_destroy
(
BaseFilter
*
iface
)
{
AsyncReader
*
filter
=
impl_from_BaseFilter
(
iface
);
if
(
filter
->
pOutputPin
)
{
IPin
*
peer
;
if
(
SUCCEEDED
(
IPin_ConnectedTo
(
filter
->
pOutputPin
,
&
peer
)))
{
IPin_Disconnect
(
peer
);
IPin_Release
(
peer
);
}
IPin_Disconnect
(
filter
->
pOutputPin
);
IPin_Release
(
filter
->
pOutputPin
);
}
CoTaskMemFree
(
filter
->
pszFileName
);
if
(
filter
->
pmt
)
DeleteMediaType
(
filter
->
pmt
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
CoTaskMemFree
(
filter
);
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
.
filter_get_pin
=
async_reader_get_pin
,
.
filter_destroy
=
async_reader_destroy
,
};
HRESULT
AsyncReader_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
...
...
@@ -468,37 +492,6 @@ static HRESULT WINAPI AsyncReader_QueryInterface(IBaseFilter * iface, REFIID rii
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
AsyncReader_Release
(
IBaseFilter
*
iface
)
{
AsyncReader
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
filter
.
refCount
);
TRACE
(
"%p->() Release from %d
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
if
(
This
->
pOutputPin
)
{
IPin
*
pConnectedTo
;
if
(
SUCCEEDED
(
IPin_ConnectedTo
(
This
->
pOutputPin
,
&
pConnectedTo
)))
{
IPin_Disconnect
(
pConnectedTo
);
IPin_Release
(
pConnectedTo
);
}
IPin_Disconnect
(
This
->
pOutputPin
);
IPin_Release
(
This
->
pOutputPin
);
}
CoTaskMemFree
(
This
->
pszFileName
);
if
(
This
->
pmt
)
DeleteMediaType
(
This
->
pmt
);
strmbase_filter_cleanup
(
&
This
->
filter
);
CoTaskMemFree
(
This
);
return
0
;
}
else
return
refCount
;
}
/** IMediaFilter methods **/
static
HRESULT
WINAPI
AsyncReader_Stop
(
IBaseFilter
*
iface
)
...
...
@@ -538,7 +531,7 @@ static const IBaseFilterVtbl AsyncReader_Vtbl =
{
AsyncReader_QueryInterface
,
BaseFilterImpl_AddRef
,
AsyncReader
_Release
,
BaseFilterImpl
_Release
,
BaseFilterImpl_GetClassID
,
AsyncReader_Stop
,
AsyncReader_Pause
,
...
...
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