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
48e110e0
Commit
48e110e0
authored
Oct 13, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfmediaengine: Use extension object in CanPlayType().
parent
b5d43949
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
main.c
dlls/mfmediaengine/main.c
+10
-2
mfmediaengine.c
dlls/mfmediaengine/tests/mfmediaengine.c
+0
-1
No files found.
dlls/mfmediaengine/main.c
View file @
48e110e0
...
...
@@ -1705,17 +1705,25 @@ static HRESULT WINAPI media_engine_Load(IMFMediaEngineEx *iface)
return
hr
;
}
static
HRESULT
WINAPI
media_engine_CanPlayType
(
IMFMediaEngineEx
*
iface
,
BSTR
type
,
MF_MEDIA_ENGINE_CANPLAY
*
answer
)
static
HRESULT
WINAPI
media_engine_CanPlayType
(
IMFMediaEngineEx
*
iface
,
BSTR
mime_
type
,
MF_MEDIA_ENGINE_CANPLAY
*
answer
)
{
struct
media_engine
*
engine
=
impl_from_IMFMediaEngineEx
(
iface
);
HRESULT
hr
=
E_NOTIMPL
;
FIXME
(
"(%p, %s, %p): stub.
\n
"
,
iface
,
debugstr_w
(
type
),
answer
);
TRACE
(
"%p, %s, %p.
\n
"
,
iface
,
debugstr_w
(
mime_
type
),
answer
);
EnterCriticalSection
(
&
engine
->
cs
);
if
(
engine
->
flags
&
FLAGS_ENGINE_SHUT_DOWN
)
hr
=
MF_E_SHUTDOWN
;
else
{
FIXME
(
"Check builtin supported types.
\n
"
);
if
(
engine
->
extension
)
hr
=
IMFMediaEngineExtension_CanPlayType
(
engine
->
extension
,
!!
(
engine
->
flags
&
MF_MEDIA_ENGINE_AUDIOONLY
),
mime_type
,
answer
);
}
LeaveCriticalSection
(
&
engine
->
cs
);
...
...
dlls/mfmediaengine/tests/mfmediaengine.c
View file @
48e110e0
...
...
@@ -2495,7 +2495,6 @@ static void test_media_extension(void)
mime
=
SysAllocString
(
L"doesnotexist"
);
hr
=
IMFMediaEngine_CanPlayType
(
media_engine
,
mime
,
&
answer
);
todo_wine
ok
(
hr
==
0x80001234
,
"Unexpected hr %#lx.
\n
"
,
hr
);
SysFreeString
(
mime
);
...
...
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