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
86a72e05
Commit
86a72e05
authored
Nov 05, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfmediaengine: Handle shutdown state in GetNativeVideoSize().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ef8bf642
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
main.c
dlls/mfmediaengine/main.c
+3
-1
mfmediaengine.c
dlls/mfmediaengine/tests/mfmediaengine.c
+0
-1
No files found.
dlls/mfmediaengine/main.c
View file @
86a72e05
...
...
@@ -1338,7 +1338,9 @@ static HRESULT WINAPI media_engine_GetNativeVideoSize(IMFMediaEngine *iface, DWO
EnterCriticalSection
(
&
engine
->
cs
);
if
(
!
engine
->
video_frame
.
size
.
cx
&&
!
engine
->
video_frame
.
size
.
cy
)
if
(
engine
->
flags
&
FLAGS_ENGINE_SHUT_DOWN
)
hr
=
MF_E_SHUTDOWN
;
else
if
(
!
engine
->
video_frame
.
size
.
cx
&&
!
engine
->
video_frame
.
size
.
cy
)
hr
=
E_FAIL
;
else
{
...
...
dlls/mfmediaengine/tests/mfmediaengine.c
View file @
86a72e05
...
...
@@ -379,7 +379,6 @@ todo_wine
ok
(
!
state
,
"Unexpected state.
\n
"
);
hr
=
IMFMediaEngine_GetNativeVideoSize
(
media_engine
,
&
cx
,
&
cy
);
todo_wine
ok
(
hr
==
MF_E_SHUTDOWN
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFMediaEngine_GetVideoAspectRatio
(
media_engine
,
&
cx
,
&
cy
);
...
...
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