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
e5b25e87
Commit
e5b25e87
authored
May 28, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfmediaengine: Keep auto-play flag.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5007c2bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
main.c
dlls/mfmediaengine/main.c
+25
-3
mfmediaengine.c
dlls/mfmediaengine/tests/mfmediaengine.c
+0
-1
No files found.
dlls/mfmediaengine/main.c
View file @
e5b25e87
...
...
@@ -59,6 +59,7 @@ enum media_engine_flags
{
/* MF_MEDIA_ENGINE_CREATEFLAGS_MASK is 0x1f. */
FLAGS_ENGINE_SHUT_DOWN
=
0x20
,
FLAGS_ENGINE_AUTO_PLAY
=
0x40
,
};
struct
media_engine
...
...
@@ -74,6 +75,14 @@ struct media_engine
CRITICAL_SECTION
cs
;
};
static
void
media_engine_set_flag
(
struct
media_engine
*
engine
,
unsigned
int
mask
,
BOOL
value
)
{
if
(
value
)
engine
->
flags
|=
mask
;
else
engine
->
flags
&=
~
mask
;
}
static
inline
struct
media_engine
*
impl_from_IMFMediaEngine
(
IMFMediaEngine
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
media_engine
,
IMFMediaEngine_iface
);
...
...
@@ -306,16 +315,29 @@ static BOOL WINAPI media_engine_IsEnded(IMFMediaEngine *iface)
static
BOOL
WINAPI
media_engine_GetAutoPlay
(
IMFMediaEngine
*
iface
)
{
FIXME
(
"(%p): stub.
\n
"
,
iface
);
struct
media_engine
*
engine
=
impl_from_IMFMediaEngine
(
iface
);
BOOL
value
;
return
FALSE
;
TRACE
(
"%p.
\n
"
,
iface
);
EnterCriticalSection
(
&
engine
->
cs
);
value
=
!!
(
engine
->
flags
&
FLAGS_ENGINE_AUTO_PLAY
);
LeaveCriticalSection
(
&
engine
->
cs
);
return
value
;
}
static
HRESULT
WINAPI
media_engine_SetAutoPlay
(
IMFMediaEngine
*
iface
,
BOOL
autoplay
)
{
struct
media_engine
*
engine
=
impl_from_IMFMediaEngine
(
iface
);
FIXME
(
"(%p, %d): stub.
\n
"
,
iface
,
autoplay
);
return
E_NOTIMPL
;
EnterCriticalSection
(
&
engine
->
cs
);
media_engine_set_flag
(
engine
,
FLAGS_ENGINE_AUTO_PLAY
,
autoplay
);
LeaveCriticalSection
(
&
engine
->
cs
);
return
S_OK
;
}
static
BOOL
WINAPI
media_engine_GetLoop
(
IMFMediaEngine
*
iface
)
...
...
dlls/mfmediaengine/tests/mfmediaengine.c
View file @
e5b25e87
...
...
@@ -338,7 +338,6 @@ todo_wine
ok
(
!
state
,
"Unexpected state.
\n
"
);
hr
=
IMFMediaEngine_SetAutoPlay
(
media_engine
,
TRUE
);
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
state
=
IMFMediaEngine_GetAutoPlay
(
media_engine
);
...
...
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