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
af34a886
Commit
af34a886
authored
May 27, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/avisplit: Use BaseFilterImpl_Release().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b883b69e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
19 deletions
+9
-19
avisplit.c
dlls/quartz/avisplit.c
+9
-19
No files found.
dlls/quartz/avisplit.c
View file @
af34a886
...
@@ -1266,24 +1266,6 @@ static HRESULT AVISplitter_Disconnect(LPVOID iface)
...
@@ -1266,24 +1266,6 @@ static HRESULT AVISplitter_Disconnect(LPVOID iface)
return
S_OK
;
return
S_OK
;
}
}
static
ULONG
WINAPI
AVISplitter_Release
(
IBaseFilter
*
iface
)
{
AVISplitterImpl
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
ref
;
ref
=
InterlockedDecrement
(
&
This
->
Parser
.
filter
.
refCount
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
This
,
ref
+
1
);
if
(
!
ref
)
{
AVISplitter_Flush
(
This
);
Parser_Destroy
(
&
This
->
Parser
);
}
return
ref
;
}
static
HRESULT
WINAPI
AVISplitter_seek
(
IMediaSeeking
*
iface
)
static
HRESULT
WINAPI
AVISplitter_seek
(
IMediaSeeking
*
iface
)
{
{
AVISplitterImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
AVISplitterImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
...
@@ -1414,7 +1396,7 @@ static const IBaseFilterVtbl AVISplitterImpl_Vtbl =
...
@@ -1414,7 +1396,7 @@ static const IBaseFilterVtbl AVISplitterImpl_Vtbl =
{
{
Parser_QueryInterface
,
Parser_QueryInterface
,
Parser_AddRef
,
Parser_AddRef
,
AVISplitter
_Release
,
BaseFilterImpl
_Release
,
Parser_GetClassID
,
Parser_GetClassID
,
Parser_Stop
,
Parser_Stop
,
Parser_Pause
,
Parser_Pause
,
...
@@ -1429,9 +1411,17 @@ static const IBaseFilterVtbl AVISplitterImpl_Vtbl =
...
@@ -1429,9 +1411,17 @@ static const IBaseFilterVtbl AVISplitterImpl_Vtbl =
Parser_QueryVendorInfo
Parser_QueryVendorInfo
};
};
static
void
avi_splitter_destroy
(
BaseFilter
*
iface
)
{
AVISplitterImpl
*
filter
=
impl_from_IBaseFilter
(
&
iface
->
IBaseFilter_iface
);
AVISplitter_Flush
(
filter
);
Parser_Destroy
(
&
filter
->
Parser
);
}
static
const
BaseFilterFuncTable
avi_splitter_func_table
=
static
const
BaseFilterFuncTable
avi_splitter_func_table
=
{
{
.
filter_get_pin
=
parser_get_pin
,
.
filter_get_pin
=
parser_get_pin
,
.
filter_destroy
=
avi_splitter_destroy
,
};
};
HRESULT
AVISplitter_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
HRESULT
AVISplitter_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
...
...
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