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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
reader.c
dlls/mfreadwrite/reader.c
+11
-7
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
...
@@ -1926,7 +1926,8 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
{
{
MFT_REGISTER_TYPE_INFO
in_type
,
out_type
;
MFT_REGISTER_TYPE_INFO
in_type
,
out_type
;
struct
transform_entry
*
entry
;
struct
transform_entry
*
entry
;
GUID
*
classes
,
category
;
IMFActivate
**
activates
;
GUID
category
;
IMFTransform
*
transform
;
IMFTransform
*
transform
;
UINT
i
,
count
;
UINT
i
,
count
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -1960,7 +1961,7 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
...
@@ -1960,7 +1961,7 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
}
}
count
=
0
;
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
)
if
(
!
count
)
{
{
...
@@ -1972,8 +1973,8 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
...
@@ -1972,8 +1973,8 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
{
{
IMFMediaType
*
media_type
;
IMFMediaType
*
media_type
;
if
(
FAILED
(
hr
=
CoCreateInstance
(
&
classes
[
i
],
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMFTransform
,
(
void
**
)
&
transform
)))
if
(
FAILED
(
IMFActivate_ActivateObject
(
activates
[
i
]
,
&
IID_IMFTransform
,
(
void
**
)
&
transform
)))
break
;
continue
;
if
(
SUCCEEDED
(
hr
=
IMFTransform_SetInputType
(
transform
,
0
,
input_type
,
0
))
if
(
SUCCEEDED
(
hr
=
IMFTransform_SetInputType
(
transform
,
0
,
input_type
,
0
))
&&
SUCCEEDED
(
hr
=
IMFTransform_GetInputCurrentType
(
transform
,
0
,
&
media_type
)))
&&
SUCCEEDED
(
hr
=
IMFTransform_GetInputCurrentType
(
transform
,
0
,
&
media_type
)))
{
{
...
@@ -1995,17 +1996,20 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
...
@@ -1995,17 +1996,20 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
{
{
entry
->
transform
=
transform
;
entry
->
transform
=
transform
;
*
out
=
entry
;
*
out
=
entry
;
return
S_OK
;
break
;
}
}
}
}
IMFTransform_Release
(
transform
);
IMFTransform_Release
(
transform
);
}
}
CoTaskMemFree
(
classes
);
for
(
i
=
0
;
i
<
count
;
++
i
)
IMFActivate_Release
(
activates
[
i
]);
CoTaskMemFree
(
activates
);
}
}
free
(
entry
);
if
(
FAILED
(
hr
))
free
(
entry
);
return
hr
;
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