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
f91cadcd
Commit
f91cadcd
authored
Mar 08, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Set sample flags.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f9bb5f4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
buffer.c
dlls/mfplat/buffer.c
+8
-2
mfplat.c
dlls/mfplat/tests/mfplat.c
+6
-0
No files found.
dlls/mfplat/buffer.c
View file @
f91cadcd
...
...
@@ -475,9 +475,15 @@ static HRESULT WINAPI sample_GetSampleFlags(IMFSample *iface, DWORD *flags)
static
HRESULT
WINAPI
sample_SetSampleFlags
(
IMFSample
*
iface
,
DWORD
flags
)
{
FIXME
(
"%p, %#x.
\n
"
,
iface
,
flags
);
struct
sample
*
sample
=
impl_from_IMFSample
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %#x.
\n
"
,
iface
,
flags
);
EnterCriticalSection
(
&
sample
->
cs
);
sample
->
flags
=
flags
;
LeaveCriticalSection
(
&
sample
->
cs
);
return
S_OK
;
}
static
HRESULT
WINAPI
sample_GetSampleTime
(
IMFSample
*
iface
,
LONGLONG
*
sampletime
)
...
...
dlls/mfplat/tests/mfplat.c
View file @
f91cadcd
...
...
@@ -734,6 +734,12 @@ static void test_sample(void)
ok
(
hr
==
S_OK
,
"Failed to get sample flags, hr %#x.
\n
"
,
hr
);
ok
(
!
flags
,
"Unexpected flags %#x.
\n
"
,
flags
);
hr
=
IMFSample_SetSampleFlags
(
sample
,
0x123
);
ok
(
hr
==
S_OK
,
"Failed to set sample flags, hr %#x.
\n
"
,
hr
);
hr
=
IMFSample_GetSampleFlags
(
sample
,
&
flags
);
ok
(
hr
==
S_OK
,
"Failed to get sample flags, hr %#x.
\n
"
,
hr
);
ok
(
flags
==
0x123
,
"Unexpected flags %#x.
\n
"
,
flags
);
hr
=
IMFSample_GetSampleTime
(
sample
,
&
time
);
todo_wine
ok
(
hr
==
MF_E_NO_SAMPLE_TIMESTAMP
,
"Unexpected hr %#x.
\n
"
,
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