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
e2f74ce4
Commit
e2f74ce4
authored
Apr 13, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay: Handle shutdown state on GetMediaItem().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
58d0cb0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
player.c
dlls/mfplay/player.c
+3
-1
mfplay.c
dlls/mfplay/tests/mfplay.c
+0
-1
No files found.
dlls/mfplay/player.c
View file @
e2f74ce4
...
...
@@ -998,7 +998,9 @@ static HRESULT WINAPI media_player_GetMediaItem(IMFPMediaPlayer *iface, IMFPMedi
return
E_POINTER
;
EnterCriticalSection
(
&
player
->
cs
);
if
(
!
player
->
item
)
if
(
player
->
state
==
MFP_MEDIAPLAYER_STATE_SHUTDOWN
)
hr
=
MF_E_SHUTDOWN
;
else
if
(
!
player
->
item
)
hr
=
MF_E_NOT_FOUND
;
else
{
...
...
dlls/mfplay/tests/mfplay.c
View file @
e2f74ce4
...
...
@@ -163,7 +163,6 @@ static void test_shutdown(void)
ok
(
hr
==
MF_E_SHUTDOWN
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFPMediaPlayer_GetMediaItem
(
player
,
&
item
);
todo_wine
ok
(
hr
==
MF_E_SHUTDOWN
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFPMediaPlayer_GetVideoWindow
(
player
,
&
window
);
...
...
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