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
992f5345
Commit
992f5345
authored
Jul 18, 2014
by
Thomas Faber
Committed by
Alexandre Julliard
Jul 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Separate BaseFilter destructor from Release.
parent
509bdae8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
filter.c
dlls/strmbase/filter.c
+13
-8
strmbase.h
include/wine/strmbase.h
+1
-0
No files found.
dlls/strmbase/filter.c
View file @
992f5345
...
...
@@ -69,14 +69,7 @@ ULONG WINAPI BaseFilterImpl_Release(IBaseFilter * iface)
TRACE
(
"(%p)->() Release from %d
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
if
(
This
->
pClock
)
IReferenceClock_Release
(
This
->
pClock
);
This
->
IBaseFilter_iface
.
lpVtbl
=
NULL
;
This
->
csFilter
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
csFilter
);
}
BaseFilter_Destroy
(
This
);
return
refCount
;
}
...
...
@@ -218,3 +211,15 @@ HRESULT WINAPI BaseFilter_Init(BaseFilter * This, const IBaseFilterVtbl *Vtbl, c
return
S_OK
;
}
HRESULT
WINAPI
BaseFilter_Destroy
(
BaseFilter
*
This
)
{
if
(
This
->
pClock
)
IReferenceClock_Release
(
This
->
pClock
);
This
->
IBaseFilter_iface
.
lpVtbl
=
NULL
;
This
->
csFilter
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
csFilter
);
return
S_OK
;
}
include/wine/strmbase.h
View file @
992f5345
...
...
@@ -194,6 +194,7 @@ LONG WINAPI BaseFilterImpl_GetPinVersion(BaseFilter* This);
VOID
WINAPI
BaseFilterImpl_IncrementPinVersion
(
BaseFilter
*
This
);
HRESULT
WINAPI
BaseFilter_Init
(
BaseFilter
*
This
,
const
IBaseFilterVtbl
*
Vtbl
,
const
CLSID
*
pClsid
,
DWORD_PTR
DebugInfo
,
const
BaseFilterFuncTable
*
pBaseFuncsTable
);
HRESULT
WINAPI
BaseFilter_Destroy
(
BaseFilter
*
This
);
/* Enums */
HRESULT
WINAPI
EnumMediaTypes_Construct
(
BasePin
*
iface
,
BasePin_GetMediaType
enumFunc
,
BasePin_GetMediaTypeVersion
versionFunc
,
IEnumMediaTypes
**
ppEnum
);
...
...
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