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
0a39066a
Commit
0a39066a
authored
Feb 10, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay: Use resolver functionality for content type resolution.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a8bdf8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
player.c
dlls/mfplay/player.c
+10
-8
No files found.
dlls/mfplay/player.c
View file @
0a39066a
...
...
@@ -1047,8 +1047,8 @@ static HRESULT media_player_create_item_from_url(struct media_player *player,
{
*
ret
=
NULL
;
if
(
SUCCEEDED
(
hr
=
IMFSourceResolver_CreateObjectFromURL
(
player
->
resolver
,
url
,
MF_RESOLUTION_MEDIASOURCE
,
player
->
propstore
,
&
obj_type
,
&
object
)))
if
(
SUCCEEDED
(
hr
=
IMFSourceResolver_CreateObjectFromURL
(
player
->
resolver
,
url
,
MF_RESOLUTION_MEDIASOURCE
|
MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE
,
player
->
propstore
,
&
obj_type
,
&
object
)))
{
hr
=
media_item_set_source
(
item
,
object
);
IUnknown_Release
(
object
);
...
...
@@ -1066,8 +1066,9 @@ static HRESULT media_player_create_item_from_url(struct media_player *player,
{
if
(
ret
)
*
ret
=
NULL
;
hr
=
IMFSourceResolver_BeginCreateObjectFromURL
(
player
->
resolver
,
url
,
MF_RESOLUTION_MEDIASOURCE
,
player
->
propstore
,
NULL
,
&
player
->
resolver_callback
,
(
IUnknown
*
)
&
item
->
IMFPMediaItem_iface
);
hr
=
IMFSourceResolver_BeginCreateObjectFromURL
(
player
->
resolver
,
url
,
MF_RESOLUTION_MEDIASOURCE
|
MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE
,
player
->
propstore
,
NULL
,
&
player
->
resolver_callback
,
(
IUnknown
*
)
&
item
->
IMFPMediaItem_iface
);
IMFPMediaItem_Release
(
&
item
->
IMFPMediaItem_iface
);
}
...
...
@@ -1123,8 +1124,8 @@ static HRESULT media_player_create_item_from_object(struct media_player *player,
if
(
sync
)
{
if
(
stream
)
hr
=
IMFSourceResolver_CreateObjectFromByteStream
(
player
->
resolver
,
stream
,
NULL
,
MF_RESOLUTION_MEDIASOURC
E
,
player
->
propstore
,
&
obj_type
,
&
object
);
hr
=
IMFSourceResolver_CreateObjectFromByteStream
(
player
->
resolver
,
stream
,
NULL
,
MF_RESOLUTION_MEDIASOURCE
|
MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYP
E
,
player
->
propstore
,
&
obj_type
,
&
object
);
else
IUnknown_AddRef
(
object
);
...
...
@@ -1145,8 +1146,9 @@ static HRESULT media_player_create_item_from_object(struct media_player *player,
{
if
(
stream
)
{
hr
=
IMFSourceResolver_BeginCreateObjectFromByteStream
(
player
->
resolver
,
stream
,
NULL
,
MF_RESOLUTION_MEDIASOURCE
,
player
->
propstore
,
NULL
,
&
player
->
resolver_callback
,
(
IUnknown
*
)
&
item
->
IMFPMediaItem_iface
);
hr
=
IMFSourceResolver_BeginCreateObjectFromByteStream
(
player
->
resolver
,
stream
,
NULL
,
MF_RESOLUTION_MEDIASOURCE
|
MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE
,
player
->
propstore
,
NULL
,
&
player
->
resolver_callback
,
(
IUnknown
*
)
&
item
->
IMFPMediaItem_iface
);
}
else
{
...
...
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