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
77731392
Commit
77731392
authored
Oct 16, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfmediaengine: Mask some source flags returned from GetResourceCharacteristics().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
609de17e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
main.c
dlls/mfmediaengine/main.c
+10
-2
No files found.
dlls/mfmediaengine/main.c
View file @
77731392
...
@@ -2601,9 +2601,17 @@ static HRESULT WINAPI media_engine_GetResourceCharacteristics(IMFMediaEngineEx *
...
@@ -2601,9 +2601,17 @@ static HRESULT WINAPI media_engine_GetResourceCharacteristics(IMFMediaEngineEx *
EnterCriticalSection
(
&
engine
->
cs
);
EnterCriticalSection
(
&
engine
->
cs
);
if
(
engine
->
flags
&
FLAGS_ENGINE_SHUT_DOWN
)
if
(
engine
->
flags
&
FLAGS_ENGINE_SHUT_DOWN
)
{
hr
=
MF_E_SHUTDOWN
;
hr
=
MF_E_SHUTDOWN
;
else
if
(
engine
->
presentation
.
source
)
}
hr
=
IMFMediaSource_GetCharacteristics
(
engine
->
presentation
.
source
,
flags
);
else
if
(
engine
->
presentation
.
source
&&
flags
)
{
if
(
SUCCEEDED
(
IMFMediaSource_GetCharacteristics
(
engine
->
presentation
.
source
,
flags
)))
{
*
flags
=
*
flags
&
0xf
;
hr
=
S_OK
;
}
}
LeaveCriticalSection
(
&
engine
->
cs
);
LeaveCriticalSection
(
&
engine
->
cs
);
return
hr
;
return
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