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
1cc06fb2
Commit
1cc06fb2
authored
Jun 11, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Give priority to local bytestream handlers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5f4cf136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
main.c
dlls/mfplat/main.c
+23
-2
No files found.
dlls/mfplat/main.c
View file @
1cc06fb2
...
...
@@ -5031,9 +5031,9 @@ static HRESULT resolver_get_bytestream_handler(IMFByteStream *stream, const WCHA
IMFAttributes
*
attributes
;
const
WCHAR
*
url_ext
;
WCHAR
*
mimeW
=
NULL
;
HRESULT
hr
=
E_FAIL
;
unsigned
int
i
,
j
;
UINT32
length
;
HRESULT
hr
;
*
handler
=
NULL
;
...
...
@@ -5053,7 +5053,28 @@ static HRESULT resolver_get_bytestream_handler(IMFByteStream *stream, const WCHA
return
MF_E_UNSUPPORTED_BYTESTREAM_TYPE
;
}
/* FIXME: check local handlers first */
if
(
!
(
flags
&
MF_RESOLUTION_DISABLE_LOCAL_PLUGINS
))
{
struct
local_handler
*
local_handler
;
EnterCriticalSection
(
&
local_handlers_section
);
LIST_FOR_EACH_ENTRY
(
local_handler
,
&
local_bytestream_handlers
,
struct
local_handler
,
entry
)
{
if
((
mimeW
&&
!
lstrcmpiW
(
mimeW
,
local_handler
->
u
.
bytestream
.
mime
))
||
(
url_ext
&&
!
lstrcmpiW
(
url_ext
,
local_handler
->
u
.
bytestream
.
extension
)))
{
if
(
SUCCEEDED
(
hr
=
IMFActivate_ActivateObject
(
local_handler
->
activate
,
&
IID_IMFByteStreamHandler
,
(
void
**
)
handler
)))
break
;
}
}
LeaveCriticalSection
(
&
local_handlers_section
);
if
(
*
handler
)
return
hr
;
}
for
(
i
=
0
,
hr
=
E_FAIL
;
i
<
ARRAY_SIZE
(
hkey_roots
);
++
i
)
{
...
...
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