Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5dc6db5f
Commit
5dc6db5f
authored
Feb 28, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Use generic enum for object states.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
adb420ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
session.c
dlls/mf/session.c
+11
-10
No files found.
dlls/mf/session.c
View file @
5dc6db5f
...
...
@@ -79,11 +79,12 @@ enum session_state
SESSION_STATE_SHUT_DOWN
,
};
enum
source
_state
enum
object
_state
{
SOURCE_STATE_STOPPED
=
0
,
SOURCE_STATE_STARTED
,
SOURCE_STATE_PAUSED
,
OBJ_STATE_STOPPED
=
0
,
OBJ_STATE_STARTED
,
OBJ_STATE_PAUSED
,
OBJ_STATE_INVALID
,
};
struct
media_source
...
...
@@ -91,7 +92,7 @@ struct media_source
struct
list
entry
;
IMFMediaSource
*
source
;
IMFPresentationDescriptor
*
pd
;
enum
source
_state
state
;
enum
object
_state
state
;
};
struct
source_node
...
...
@@ -1385,7 +1386,7 @@ static HRESULT session_add_media_stream(struct media_session *session, IMFMediaS
return
S_OK
;
}
static
BOOL
session_set_source_state
(
struct
media_session
*
session
,
IMFMediaSource
*
source
,
enum
source
_state
state
)
static
BOOL
session_set_source_state
(
struct
media_session
*
session
,
IMFMediaSource
*
source
,
enum
object
_state
state
)
{
struct
media_source
*
cur
;
BOOL
ret
=
TRUE
;
...
...
@@ -1469,7 +1470,7 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
{
struct
media_session
*
session
=
impl_from_events_callback_IMFAsyncCallback
(
iface
);
IMFMediaEventGenerator
*
event_source
;
enum
source
_state
source_state
;
enum
object
_state
source_state
;
IMFMediaEvent
*
event
=
NULL
;
MediaEventType
event_type
;
IMFMediaSource
*
source
;
...
...
@@ -1506,11 +1507,11 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
case
MESourcePaused
:
case
MESourceStopped
:
if
(
event_type
==
MESourceStarted
)
source_state
=
SOURCE
_STATE_STARTED
;
source_state
=
OBJ
_STATE_STARTED
;
else
if
(
event_type
==
MESourcePaused
)
source_state
=
SOURCE
_STATE_PAUSED
;
source_state
=
OBJ
_STATE_PAUSED
;
else
source_state
=
SOURCE
_STATE_STOPPED
;
source_state
=
OBJ
_STATE_STOPPED
;
EnterCriticalSection
(
&
session
->
cs
);
...
...
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