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
17fd8c8e
Commit
17fd8c8e
authored
Mar 27, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/reader: Use MFTEnumEx to enumerate stream transforms.
parent
4f8958eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
reader.c
dlls/mfreadwrite/reader.c
+10
-6
No files found.
dlls/mfreadwrite/reader.c
View file @
17fd8c8e
...
...
@@ -1926,7 +1926,8 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
{
MFT_REGISTER_TYPE_INFO
in_type
,
out_type
;
struct
transform_entry
*
entry
;
GUID
*
classes
,
category
;
IMFActivate
**
activates
;
GUID
category
;
IMFTransform
*
transform
;
UINT
i
,
count
;
HRESULT
hr
;
...
...
@@ -1960,7 +1961,7 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
}
count
=
0
;
if
(
SUCCEEDED
(
hr
=
MFTEnum
(
category
,
0
,
&
in_type
,
allow_processor
?
NULL
:
&
out_type
,
NULL
,
&
class
es
,
&
count
)))
if
(
SUCCEEDED
(
hr
=
MFTEnum
Ex
(
category
,
0
,
&
in_type
,
allow_processor
?
NULL
:
&
out_type
,
&
activat
es
,
&
count
)))
{
if
(
!
count
)
{
...
...
@@ -1972,8 +1973,8 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
{
IMFMediaType
*
media_type
;
if
(
FAILED
(
hr
=
CoCreateInstance
(
&
classes
[
i
],
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMFTransform
,
(
void
**
)
&
transform
)))
break
;
if
(
FAILED
(
IMFActivate_ActivateObject
(
activates
[
i
]
,
&
IID_IMFTransform
,
(
void
**
)
&
transform
)))
continue
;
if
(
SUCCEEDED
(
hr
=
IMFTransform_SetInputType
(
transform
,
0
,
input_type
,
0
))
&&
SUCCEEDED
(
hr
=
IMFTransform_GetInputCurrentType
(
transform
,
0
,
&
media_type
)))
{
...
...
@@ -1995,16 +1996,19 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
{
entry
->
transform
=
transform
;
*
out
=
entry
;
return
S_OK
;
break
;
}
}
IMFTransform_Release
(
transform
);
}
CoTaskMemFree
(
classes
);
for
(
i
=
0
;
i
<
count
;
++
i
)
IMFActivate_Release
(
activates
[
i
]);
CoTaskMemFree
(
activates
);
}
if
(
FAILED
(
hr
))
free
(
entry
);
return
hr
;
}
...
...
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