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
86d82c73
Commit
86d82c73
authored
Jan 23, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Use MFCreateVideoMediaTypeFromSubtype in GetInputAvailableType.
parent
bb872831
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
h264_decoder.c
dlls/winegstreamer/h264_decoder.c
+1
-16
No files found.
dlls/winegstreamer/h264_decoder.c
View file @
86d82c73
...
...
@@ -392,27 +392,12 @@ static HRESULT WINAPI transform_AddInputStreams(IMFTransform *iface, DWORD strea
static
HRESULT
WINAPI
transform_GetInputAvailableType
(
IMFTransform
*
iface
,
DWORD
id
,
DWORD
index
,
IMFMediaType
**
type
)
{
IMFMediaType
*
media_type
;
const
GUID
*
subtype
;
HRESULT
hr
;
TRACE
(
"iface %p, id %#lx, index %#lx, type %p.
\n
"
,
iface
,
id
,
index
,
type
);
*
type
=
NULL
;
if
(
index
>=
ARRAY_SIZE
(
h264_decoder_input_types
))
return
MF_E_NO_MORE_TYPES
;
subtype
=
h264_decoder_input_types
[
index
];
if
(
FAILED
(
hr
=
MFCreateMediaType
(
&
media_type
)))
return
hr
;
if
(
SUCCEEDED
(
hr
=
IMFMediaType_SetGUID
(
media_type
,
&
MF_MT_MAJOR_TYPE
,
&
MFMediaType_Video
))
&&
SUCCEEDED
(
hr
=
IMFMediaType_SetGUID
(
media_type
,
&
MF_MT_SUBTYPE
,
subtype
)))
IMFMediaType_AddRef
((
*
type
=
media_type
));
IMFMediaType_Release
(
media_type
);
return
hr
;
return
MFCreateVideoMediaTypeFromSubtype
(
h264_decoder_input_types
[
index
],
(
IMFVideoMediaType
**
)
type
);
}
static
HRESULT
WINAPI
transform_GetOutputAvailableType
(
IMFTransform
*
iface
,
DWORD
id
,
...
...
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