Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
4e7f9522
Commit
4e7f9522
authored
Apr 06, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay: Forward some methods to descriptor API.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e36a6166
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
12 deletions
+37
-12
player.c
dlls/mfplay/player.c
+37
-12
No files found.
dlls/mfplay/player.c
View file @
4e7f9522
...
...
@@ -229,39 +229,64 @@ static HRESULT WINAPI media_item_GetDuration(IMFPMediaItem *iface, REFGUID forma
static
HRESULT
WINAPI
media_item_GetNumberOfStreams
(
IMFPMediaItem
*
iface
,
DWORD
*
count
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
count
);
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
count
);
return
IMFPresentationDescriptor_GetStreamDescriptorCount
(
item
->
pd
,
count
);
}
static
HRESULT
WINAPI
media_item_GetStreamSelection
(
IMFPMediaItem
*
iface
,
DWORD
index
,
BOOL
*
enabl
ed
)
static
HRESULT
WINAPI
media_item_GetStreamSelection
(
IMFPMediaItem
*
iface
,
DWORD
index
,
BOOL
*
select
ed
)
{
FIXME
(
"%p, %u, %p.
\n
"
,
iface
,
index
,
enabled
);
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
iface
);
IMFStreamDescriptor
*
sd
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"%p, %u, %p.
\n
"
,
iface
,
index
,
selected
);
if
(
SUCCEEDED
(
hr
=
IMFPresentationDescriptor_GetStreamDescriptorByIndex
(
item
->
pd
,
index
,
selected
,
&
sd
)))
IMFStreamDescriptor_Release
(
sd
);
return
hr
;
}
static
HRESULT
WINAPI
media_item_SetStreamSelection
(
IMFPMediaItem
*
iface
,
DWORD
index
,
BOOL
enabled
)
static
HRESULT
WINAPI
media_item_SetStreamSelection
(
IMFPMediaItem
*
iface
,
DWORD
index
,
BOOL
select
)
{
FIXME
(
"%p, %u, %d.
\n
"
,
iface
,
index
,
enabled
);
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %u, %d.
\n
"
,
iface
,
index
,
select
);
return
select
?
IMFPresentationDescriptor_SelectStream
(
item
->
pd
,
index
)
:
IMFPresentationDescriptor_DeselectStream
(
item
->
pd
,
index
);
}
static
HRESULT
WINAPI
media_item_GetStreamAttribute
(
IMFPMediaItem
*
iface
,
DWORD
index
,
REFGUID
key
,
PROPVARIANT
*
value
)
{
FIXME
(
"%p, %u, %s, %p.
\n
"
,
iface
,
index
,
debugstr_guid
(
key
),
value
);
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
iface
);
IMFStreamDescriptor
*
sd
;
BOOL
selected
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"%p, %u, %s, %p.
\n
"
,
iface
,
index
,
debugstr_guid
(
key
),
value
);
if
(
SUCCEEDED
(
hr
=
IMFPresentationDescriptor_GetStreamDescriptorByIndex
(
item
->
pd
,
index
,
&
selected
,
&
sd
)))
{
hr
=
IMFStreamDescriptor_GetItem
(
sd
,
key
,
value
);
IMFStreamDescriptor_Release
(
sd
);
}
return
hr
;
}
static
HRESULT
WINAPI
media_item_GetPresentationAttribute
(
IMFPMediaItem
*
iface
,
REFGUID
key
,
PROPVARIANT
*
value
)
{
FIXME
(
"%p, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
key
),
valu
e
);
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
ifac
e
);
return
E_NOTIMPL
;
TRACE
(
"%p, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
key
),
value
);
return
IMFPresentationDescriptor_GetItem
(
item
->
pd
,
key
,
value
);
}
static
HRESULT
WINAPI
media_item_GetCharacteristics
(
IMFPMediaItem
*
iface
,
MFP_MEDIAITEM_CHARACTERISTICS
*
flags
)
...
...
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