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
e10cb0d2
Commit
e10cb0d2
authored
May 28, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/avimux: Use BaseFilterImpl_Release().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97cf9ab4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
28 deletions
+23
-28
avimux.c
dlls/qcap/avimux.c
+23
-28
No files found.
dlls/qcap/avimux.c
View file @
e10cb0d2
...
...
@@ -134,8 +134,30 @@ static IPin *avi_mux_get_pin(BaseFilter *iface, unsigned int index)
return
NULL
;
}
static
void
avi_mux_destroy
(
BaseFilter
*
iface
)
{
AviMux
*
filter
=
impl_from_BaseFilter
(
iface
);
int
i
;
BaseOutputPinImpl_Release
(
&
filter
->
out
->
pin
.
pin
.
IPin_iface
);
for
(
i
=
0
;
i
<
filter
->
input_pin_no
;
++
i
)
{
IPin_Disconnect
(
&
filter
->
in
[
i
]
->
pin
.
pin
.
IPin_iface
);
IMemAllocator_Release
(
filter
->
in
[
i
]
->
samples_allocator
);
filter
->
in
[
i
]
->
samples_allocator
=
NULL
;
BaseInputPinImpl_Release
(
&
filter
->
in
[
i
]
->
pin
.
pin
.
IPin_iface
);
}
heap_free
(
filter
->
idx1
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
heap_free
(
filter
);
ObjectRefCount
(
FALSE
);
}
static
const
BaseFilterFuncTable
filter_func_table
=
{
.
filter_get_pin
=
avi_mux_get_pin
,
.
filter_destroy
=
avi_mux_destroy
,
};
static
inline
AviMux
*
impl_from_IBaseFilter
(
IBaseFilter
*
iface
)
...
...
@@ -173,33 +195,6 @@ static HRESULT WINAPI AviMux_QueryInterface(IBaseFilter *iface, REFIID riid, voi
return
S_OK
;
}
static
ULONG
WINAPI
AviMux_Release
(
IBaseFilter
*
iface
)
{
AviMux
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
filter
.
refCount
);
TRACE
(
"(%p) new refcount: %u
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
int
i
;
BaseOutputPinImpl_Release
(
&
This
->
out
->
pin
.
pin
.
IPin_iface
);
for
(
i
=
0
;
i
<
This
->
input_pin_no
;
i
++
)
{
IPin_Disconnect
(
&
This
->
in
[
i
]
->
pin
.
pin
.
IPin_iface
);
IMemAllocator_Release
(
This
->
in
[
i
]
->
samples_allocator
);
This
->
in
[
i
]
->
samples_allocator
=
NULL
;
BaseInputPinImpl_Release
(
&
This
->
in
[
i
]
->
pin
.
pin
.
IPin_iface
);
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
idx1
);
strmbase_filter_cleanup
(
&
This
->
filter
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
ObjectRefCount
(
FALSE
);
}
return
ref
;
}
static
HRESULT
out_flush
(
AviMux
*
This
)
{
ULONG
written
;
...
...
@@ -766,7 +761,7 @@ static HRESULT WINAPI AviMux_QueryVendorInfo(IBaseFilter *iface, LPWSTR *pVendor
static
const
IBaseFilterVtbl
AviMuxVtbl
=
{
AviMux_QueryInterface
,
BaseFilterImpl_AddRef
,
AviMux
_Release
,
BaseFilterImpl
_Release
,
BaseFilterImpl_GetClassID
,
AviMux_Stop
,
AviMux_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