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
8ba451f8
Commit
8ba451f8
authored
May 14, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Get rid of the ENUMMEDIADETAILS structure.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a2258e71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
mediatype.c
dlls/strmbase/mediatype.c
+5
-10
No files found.
dlls/strmbase/mediatype.c
View file @
8ba451f8
...
...
@@ -77,11 +77,6 @@ void WINAPI DeleteMediaType(AM_MEDIA_TYPE * pMediaType)
CoTaskMemFree
(
pMediaType
);
}
typedef
struct
tagENUMEDIADETAILS
{
ULONG
cMediaTypes
;
}
ENUMMEDIADETAILS
;
typedef
struct
IEnumMediaTypesImpl
{
IEnumMediaTypes
IEnumMediaTypes_iface
;
...
...
@@ -90,7 +85,7 @@ typedef struct IEnumMediaTypesImpl
BasePin_GetMediaType
enumMediaFunction
;
BasePin_GetMediaTypeVersion
mediaVersionFunction
;
LONG
currentVersion
;
ENUMMEDIADETAILS
enumMediaDetails
;
ULONG
count
;
ULONG
uIndex
;
}
IEnumMediaTypesImpl
;
...
...
@@ -127,7 +122,7 @@ HRESULT WINAPI EnumMediaTypes_Construct(BasePin *basePin, BasePin_GetMediaType e
i
++
;
}
pEnumMediaTypes
->
enumMediaDetails
.
cMediaTypes
=
i
;
pEnumMediaTypes
->
count
=
i
;
*
ppEnum
=
&
pEnumMediaTypes
->
IEnumMediaTypes_iface
;
pEnumMediaTypes
->
currentVersion
=
versionFunc
(
basePin
);
return
S_OK
;
...
...
@@ -184,7 +179,7 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Next(IEnumMediaTypes * iface, ULONG cM
TRACE
(
"(%p)->(%u, %p, %p)
\n
"
,
iface
,
cMediaTypes
,
ppMediaTypes
,
pcFetched
);
cFetched
=
min
(
This
->
enumMediaDetails
.
cMediaTypes
,
This
->
uIndex
+
cMediaTypes
)
-
This
->
uIndex
;
cFetched
=
min
(
This
->
count
,
This
->
uIndex
+
cMediaTypes
)
-
This
->
uIndex
;
if
(
This
->
currentVersion
!=
This
->
mediaVersionFunction
(
This
->
basePin
))
return
VFW_E_ENUM_OUT_OF_SYNC
;
...
...
@@ -226,7 +221,7 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Skip(IEnumMediaTypes * iface, ULONG cM
if
(
This
->
currentVersion
!=
This
->
mediaVersionFunction
(
This
->
basePin
))
return
VFW_E_ENUM_OUT_OF_SYNC
;
if
(
This
->
uIndex
+
cMediaTypes
<
This
->
enumMediaDetails
.
cMediaTypes
)
if
(
This
->
uIndex
+
cMediaTypes
<
This
->
count
)
{
This
->
uIndex
+=
cMediaTypes
;
return
S_OK
;
...
...
@@ -248,7 +243,7 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Reset(IEnumMediaTypes * iface)
FreeMediaType
(
&
amt
);
i
++
;
}
This
->
enumMediaDetails
.
cMediaTypes
=
i
;
This
->
count
=
i
;
This
->
currentVersion
=
This
->
mediaVersionFunction
(
This
->
basePin
);
This
->
uIndex
=
0
;
...
...
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