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
930c9dd9
Commit
930c9dd9
authored
Nov 23, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Nov 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Display new ref in AddRef and Release for IEnumMediaTypes.
parent
6b43027c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mediatype.c
dlls/strmbase/mediatype.c
+7
-7
No files found.
dlls/strmbase/mediatype.c
View file @
930c9dd9
...
...
@@ -170,21 +170,21 @@ static HRESULT WINAPI IEnumMediaTypesImpl_QueryInterface(IEnumMediaTypes * iface
static
ULONG
WINAPI
IEnumMediaTypesImpl_AddRef
(
IEnumMediaTypes
*
iface
)
{
IEnumMediaTypesImpl
*
This
=
impl_from_IEnumMediaTypes
(
iface
);
ULONG
ref
Count
=
InterlockedIncrement
(
&
This
->
refCount
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p)->()
AddRef from %d
\n
"
,
iface
,
refCount
-
1
);
TRACE
(
"(%p)->()
: new ref = %u
\n
"
,
iface
,
ref
);
return
ref
Count
;
return
ref
;
}
static
ULONG
WINAPI
IEnumMediaTypesImpl_Release
(
IEnumMediaTypes
*
iface
)
{
IEnumMediaTypesImpl
*
This
=
impl_from_IEnumMediaTypes
(
iface
);
ULONG
ref
Count
=
InterlockedDecrement
(
&
This
->
refCount
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"(%p)->()
Release from %d
\n
"
,
iface
,
refCount
+
1
);
TRACE
(
"(%p)->()
: new ref = %u
\n
"
,
iface
,
ref
);
if
(
!
ref
Count
)
if
(
!
ref
)
{
ULONG
i
;
for
(
i
=
0
;
i
<
This
->
enumMediaDetails
.
cMediaTypes
;
i
++
)
...
...
@@ -193,7 +193,7 @@ static ULONG WINAPI IEnumMediaTypesImpl_Release(IEnumMediaTypes * iface)
IPin_Release
(
&
This
->
basePin
->
IPin_iface
);
CoTaskMemFree
(
This
);
}
return
ref
Count
;
return
ref
;
}
static
HRESULT
WINAPI
IEnumMediaTypesImpl_Next
(
IEnumMediaTypes
*
iface
,
ULONG
cMediaTypes
,
AM_MEDIA_TYPE
**
ppMediaTypes
,
ULONG
*
pcFetched
)
...
...
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