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
9bdf9817
Commit
9bdf9817
authored
Oct 12, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Oct 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Display new ref in AddRef and Release.
parent
d183cc6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
mediastreamfilter.c
dlls/amstream/mediastreamfilter.c
+10
-5
No files found.
dlls/amstream/mediastreamfilter.c
View file @
9bdf9817
...
...
@@ -133,17 +133,22 @@ static HRESULT WINAPI MediaStreamFilterImpl_QueryInterface(IMediaStreamFilter *i
static
ULONG
WINAPI
MediaStreamFilterImpl_AddRef
(
IMediaStreamFilter
*
iface
)
{
return
BaseFilterImpl_AddRef
((
IBaseFilter
*
)
iface
);
IMediaStreamFilterImpl
*
This
=
impl_from_IMediaStreamFilter
(
iface
);
ULONG
ref
=
BaseFilterImpl_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
iface
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
MediaStreamFilterImpl_Release
(
IMediaStreamFilter
*
iface
)
{
IMediaStreamFilterImpl
*
This
=
impl_from_IMediaStreamFilter
(
iface
);
ULONG
ref
Count
=
BaseFilterImpl_Release
((
IBaseFilter
*
)
iface
);
ULONG
ref
=
BaseFilterImpl_Release
(
&
This
->
filter
.
IBaseFilter_
iface
);
TRACE
(
"(%p)->()
Release from %d
\n
"
,
iface
,
refCount
+
1
);
TRACE
(
"(%p)->()
: new ref = %u
\n
"
,
iface
,
ref
);
if
(
!
ref
Count
)
if
(
!
ref
)
{
int
i
;
for
(
i
=
0
;
i
<
This
->
nb_streams
;
i
++
)
...
...
@@ -154,7 +159,7 @@ static ULONG WINAPI MediaStreamFilterImpl_Release(IMediaStreamFilter *iface)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
Count
;
return
ref
;
}
/*** IPersist methods ***/
...
...
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