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
c46bdc94
Commit
c46bdc94
authored
Mar 26, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Fix return value for IsCompressedFormat().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b00be289
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
mediatype.c
dlls/mfplat/mediatype.c
+5
-4
mfplat.c
dlls/mfplat/tests/mfplat.c
+0
-1
No files found.
dlls/mfplat/mediatype.c
View file @
c46bdc94
...
...
@@ -318,17 +318,18 @@ static HRESULT WINAPI mediatype_IsCompressedFormat(IMFMediaType *iface, BOOL *co
{
struct
media_type
*
media_type
=
impl_from_IMFMediaType
(
iface
);
UINT32
value
;
HRESULT
hr
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
compressed
);
hr
=
IMFAttributes_GetUINT32
(
&
media_type
->
attributes
.
IMFAttributes_iface
,
&
MF_MT_ALL_SAMPLES_INDEPENDENT
,
&
value
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
IMFAttributes_GetUINT32
(
&
media_type
->
attributes
.
IMFAttributes_iface
,
&
MF_MT_ALL_SAMPLES_INDEPENDENT
,
&
value
)))
{
value
=
0
;
}
*
compressed
=
!
value
;
return
hr
;
return
S_OK
;
}
static
HRESULT
WINAPI
mediatype_IsEqual
(
IMFMediaType
*
iface
,
IMFMediaType
*
type
,
DWORD
*
flags
)
...
...
dlls/mfplat/tests/mfplat.c
View file @
c46bdc94
...
...
@@ -355,7 +355,6 @@ if(0)
compressed
=
FALSE
;
hr
=
IMFMediaType_IsCompressedFormat
(
mediatype
,
&
compressed
);
todo_wine
ok
(
hr
==
S_OK
,
"Failed to get media type property, hr %#x.
\n
"
,
hr
);
ok
(
compressed
,
"Unexpected value %d.
\n
"
,
compressed
);
...
...
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