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
f6c131f5
Commit
f6c131f5
authored
Apr 15, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Fix subtype test condition for MFInitMediaTypeFromWaveFormatEx().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1d785798
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mediatype.c
dlls/mfplat/mediatype.c
+2
-2
No files found.
dlls/mfplat/mediatype.c
View file @
f6c131f5
...
...
@@ -2128,7 +2128,7 @@ HRESULT WINAPI MFInitMediaTypeFromWaveFormatEx(IMFMediaType *mediatype, const WA
if
(
format
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
{
me
diatype_set_guid
(
mediatype
,
&
MF_MT_SUBTYPE
,
&
wfex
->
SubFormat
,
&
hr
);
me
mcpy
(
&
subtype
,
&
wfex
->
SubFormat
,
sizeof
(
subtype
)
);
if
(
wfex
->
dwChannelMask
)
mediatype_set_uint32
(
mediatype
,
&
MF_MT_AUDIO_CHANNEL_MASK
,
wfex
->
dwChannelMask
,
&
hr
);
...
...
@@ -2140,10 +2140,10 @@ HRESULT WINAPI MFInitMediaTypeFromWaveFormatEx(IMFMediaType *mediatype, const WA
{
memcpy
(
&
subtype
,
&
MFAudioFormat_Base
,
sizeof
(
subtype
));
subtype
.
Data1
=
format
->
wFormatTag
;
mediatype_set_guid
(
mediatype
,
&
MF_MT_SUBTYPE
,
&
subtype
,
&
hr
);
mediatype_set_uint32
(
mediatype
,
&
MF_MT_AUDIO_PREFER_WAVEFORMATEX
,
1
,
&
hr
);
}
mediatype_set_guid
(
mediatype
,
&
MF_MT_SUBTYPE
,
&
subtype
,
&
hr
);
if
(
format
->
nChannels
)
mediatype_set_uint32
(
mediatype
,
&
MF_MT_AUDIO_NUM_CHANNELS
,
format
->
nChannels
,
&
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