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
0b7b8e3d
Commit
0b7b8e3d
authored
Apr 23, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Store requested category GUID instead of a pointer to it.
parent
072e1a3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
dmoreg.c
dlls/msdmo/dmoreg.c
+25
-8
No files found.
dlls/msdmo/dmoreg.c
View file @
0b7b8e3d
...
...
@@ -90,7 +90,7 @@ typedef struct
IEnumDMO
IEnumDMO_iface
;
LONG
ref
;
DWORD
index
;
const
GUID
*
guidC
ategory
;
GUID
c
ategory
;
DWORD
dwFlags
;
DWORD
cInTypes
;
DMO_PARTIAL_MEDIATYPE
*
pInTypes
;
...
...
@@ -386,7 +386,7 @@ static HRESULT IEnumDMO_Constructor(
lpedmo
->
IEnumDMO_iface
.
lpVtbl
=
&
edmovt
;
lpedmo
->
ref
=
1
;
lpedmo
->
index
=
-
1
;
lpedmo
->
guidCategory
=
guidCategory
;
lpedmo
->
category
=
*
guidCategory
;
lpedmo
->
dwFlags
=
dwFlags
;
if
(
cInTypes
>
0
)
...
...
@@ -692,7 +692,7 @@ static HRESULT WINAPI IEnumDMO_fnClone(IEnumDMO *iface, IEnumDMO **ppEnum)
{
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppEnum
);
return
IEnumDMO_Constructor
(
This
->
guidC
ategory
,
This
->
dwFlags
,
This
->
cInTypes
,
This
->
pInTypes
,
return
IEnumDMO_Constructor
(
&
This
->
c
ategory
,
This
->
dwFlags
,
This
->
cInTypes
,
This
->
pInTypes
,
This
->
cOutTypes
,
This
->
pOutTypes
,
ppEnum
);
}
...
...
@@ -703,18 +703,35 @@ static HRESULT WINAPI IEnumDMO_fnClone(IEnumDMO *iface, IEnumDMO **ppEnum)
* Enumerate DirectX Media Objects in the registry.
*/
HRESULT
WINAPI
DMOEnum
(
REFGUID
guidC
ategory
,
DWORD
dwF
lags
,
REFGUID
c
ategory
,
DWORD
f
lags
,
DWORD
cInTypes
,
const
DMO_PARTIAL_MEDIATYPE
*
pInTypes
,
DWORD
cOutTypes
,
const
DMO_PARTIAL_MEDIATYPE
*
pOutTypes
,
IEnumDMO
**
ppEnum
)
{
TRACE
(
"guidCategory=%p dwFlags=0x%08x cInTypes=%d cOutTypes=%d
\n
"
,
guidCategory
,
dwFlags
,
cInTypes
,
cOutTypes
);
TRACE
(
"%s 0x%08x %d %p %d %p %p
\n
"
,
debugstr_guid
(
category
),
flags
,
cInTypes
,
pInTypes
,
cOutTypes
,
pOutTypes
,
ppEnum
);
if
(
TRACE_ON
(
msdmo
))
{
DWORD
i
;
if
(
cInTypes
)
{
for
(
i
=
0
;
i
<
cInTypes
;
i
++
)
TRACE
(
"intype %d - type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
pInTypes
[
i
].
type
),
debugstr_guid
(
&
pInTypes
[
i
].
subtype
));
}
if
(
cOutTypes
)
{
for
(
i
=
0
;
i
<
cOutTypes
;
i
++
)
TRACE
(
"outtype %d - type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
pOutTypes
[
i
].
type
),
debugstr_guid
(
&
pOutTypes
[
i
].
subtype
));
}
}
return
IEnumDMO_Constructor
(
guidCategory
,
dwF
lags
,
cInTypes
,
return
IEnumDMO_Constructor
(
category
,
f
lags
,
cInTypes
,
pInTypes
,
cOutTypes
,
pOutTypes
,
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