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
b39b55a1
Commit
b39b55a1
authored
Apr 07, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay: Implement GetSupportedRates().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4c77a970
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
player.c
dlls/mfplay/player.c
+15
-3
No files found.
dlls/mfplay/player.c
View file @
b39b55a1
...
@@ -722,11 +722,23 @@ static HRESULT WINAPI media_player_GetRate(IMFPMediaPlayer *iface, float *rate)
...
@@ -722,11 +722,23 @@ static HRESULT WINAPI media_player_GetRate(IMFPMediaPlayer *iface, float *rate)
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
media_player_GetSupportedRates
(
IMFPMediaPlayer
*
iface
,
BOOL
forward
,
float
*
slowest_rate
,
float
*
fastest_rate
)
static
HRESULT
WINAPI
media_player_GetSupportedRates
(
IMFPMediaPlayer
*
iface
,
BOOL
forward
,
float
*
slowest_rate
,
float
*
fastest_rate
)
{
{
FIXME
(
"%p, %d, %p, %p.
\n
"
,
iface
,
forward
,
slowest_rate
,
fastest_rate
);
struct
media_player
*
player
=
impl_from_IMFPMediaPlayer
(
iface
);
IMFRateSupport
*
rs
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"%p, %d, %p, %p.
\n
"
,
iface
,
forward
,
slowest_rate
,
fastest_rate
);
if
(
SUCCEEDED
(
hr
=
MFGetService
((
IUnknown
*
)
player
->
session
,
&
MF_RATE_CONTROL_SERVICE
,
&
IID_IMFRateSupport
,
(
void
**
)
&
rs
)))
{
if
(
SUCCEEDED
(
hr
=
IMFRateSupport_GetSlowestRate
(
rs
,
forward
?
MFRATE_FORWARD
:
MFRATE_REVERSE
,
FALSE
,
slowest_rate
)))
hr
=
IMFRateSupport_GetFastestRate
(
rs
,
forward
?
MFRATE_FORWARD
:
MFRATE_REVERSE
,
FALSE
,
fastest_rate
);
IMFRateSupport_Release
(
rs
);
}
return
hr
;
}
}
static
HRESULT
WINAPI
media_player_GetState
(
IMFPMediaPlayer
*
iface
,
MFP_MEDIAPLAYER_STATE
*
state
)
static
HRESULT
WINAPI
media_player_GetState
(
IMFPMediaPlayer
*
iface
,
MFP_MEDIAPLAYER_STATE
*
state
)
...
...
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