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
e5475da8
Commit
e5475da8
authored
Apr 22, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Remove some unnecessary pointer casts.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b3f6f21d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mediatype.c
dlls/mfplat/mediatype.c
+5
-3
No files found.
dlls/mfplat/mediatype.c
View file @
e5475da8
...
...
@@ -978,7 +978,7 @@ static const MFVIDEOFORMAT * WINAPI video_mediatype_GetVideoFormat(IMFVideoMedia
TRACE
(
"%p.
\n
"
,
iface
);
CoTaskMemFree
(
media_type
->
video_format
);
if
(
FAILED
(
hr
=
MFCreateMFVideoFormatFromMFMediaType
(
(
IMFMediaType
*
)
iface
,
&
media_type
->
video_format
,
&
size
)))
if
(
FAILED
(
hr
=
MFCreateMFVideoFormatFromMFMediaType
(
&
media_type
->
IMFMediaType_
iface
,
&
media_type
->
video_format
,
&
size
)))
WARN
(
"Failed to create format description, hr %#x.
\n
"
,
hr
);
return
media_type
->
video_format
;
...
...
@@ -1378,9 +1378,11 @@ static const WAVEFORMATEX * WINAPI audio_mediatype_GetAudioFormat(IMFAudioMediaT
TRACE
(
"%p.
\n
"
,
iface
);
CoTaskMemFree
(
media_type
->
audio_format
);
if
(
FAILED
(
hr
=
MFCreateWaveFormatExFromMFMediaType
((
IMFMediaType
*
)
iface
,
&
media_type
->
audio_format
,
&
size
,
MFWaveFormatExConvertFlag_Normal
)))
if
(
FAILED
(
hr
=
MFCreateWaveFormatExFromMFMediaType
(
&
media_type
->
IMFMediaType_iface
,
&
media_type
->
audio_format
,
&
size
,
MFWaveFormatExConvertFlag_Normal
)))
{
WARN
(
"Failed to create wave format description, hr %#x.
\n
"
,
hr
);
}
return
media_type
->
audio_format
;
}
...
...
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