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
912dd6ff
Commit
912dd6ff
authored
May 25, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/avico: Use BaseFilterImpl_Release().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b3065a8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
23 deletions
+17
-23
avico.c
dlls/qcap/avico.c
+17
-23
No files found.
dlls/qcap/avico.c
View file @
912dd6ff
...
...
@@ -147,28 +147,6 @@ static HRESULT WINAPI AVICompressor_QueryInterface(IBaseFilter *iface, REFIID ri
}
static
ULONG
WINAPI
AVICompressor_Release
(
IBaseFilter
*
iface
)
{
AVICompressor
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
filter
.
refCount
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
This
->
hic
)
ICClose
(
This
->
hic
);
heap_free
(
This
->
videoinfo
);
if
(
This
->
in
)
BaseInputPinImpl_Release
(
&
This
->
in
->
pin
.
IPin_iface
);
if
(
This
->
out
)
BaseOutputPinImpl_Release
(
&
This
->
out
->
pin
.
IPin_iface
);
strmbase_filter_cleanup
(
&
This
->
filter
);
heap_free
(
This
);
}
return
ref
;
}
static
HRESULT
WINAPI
AVICompressor_Stop
(
IBaseFilter
*
iface
)
{
AVICompressor
*
This
=
impl_from_IBaseFilter
(
iface
);
...
...
@@ -229,7 +207,7 @@ static HRESULT WINAPI AVICompressor_QueryVendorInfo(IBaseFilter *iface, LPWSTR *
static
const
IBaseFilterVtbl
AVICompressorVtbl
=
{
AVICompressor_QueryInterface
,
BaseFilterImpl_AddRef
,
AVICompressor
_Release
,
BaseFilterImpl
_Release
,
BaseFilterImpl_GetClassID
,
AVICompressor_Stop
,
AVICompressor_Pause
,
...
...
@@ -260,8 +238,24 @@ static IPin *avi_compressor_get_pin(BaseFilter *iface, unsigned int index)
return
ret
;
}
static
void
avi_compressor_destroy
(
BaseFilter
*
iface
)
{
AVICompressor
*
filter
=
impl_from_BaseFilter
(
iface
);
if
(
filter
->
hic
)
ICClose
(
filter
->
hic
);
heap_free
(
filter
->
videoinfo
);
if
(
filter
->
in
)
BaseInputPinImpl_Release
(
&
filter
->
in
->
pin
.
IPin_iface
);
if
(
filter
->
out
)
BaseOutputPinImpl_Release
(
&
filter
->
out
->
pin
.
IPin_iface
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
heap_free
(
filter
);
}
static
const
BaseFilterFuncTable
filter_func_table
=
{
.
filter_get_pin
=
avi_compressor_get_pin
,
.
filter_destroy
=
avi_compressor_destroy
,
};
static
AVICompressor
*
impl_from_IPersistPropertyBag
(
IPersistPropertyBag
*
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