[PATCH 4/9] mfplay: Forward playback control methods to the session.
Nikolay Sivov
nsivov at codeweavers.com
Wed Apr 7 03:07:02 CDT 2021
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/mfplay/player.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/dlls/mfplay/player.c b/dlls/mfplay/player.c
index 16592f2b3b6..9ef926f00f6 100644
--- a/dlls/mfplay/player.c
+++ b/dlls/mfplay/player.c
@@ -651,23 +651,31 @@ static ULONG WINAPI media_player_Release(IMFPMediaPlayer *iface)
static HRESULT WINAPI media_player_Play(IMFPMediaPlayer *iface)
{
- FIXME("%p.\n", iface);
+ struct media_player *player = impl_from_IMFPMediaPlayer(iface);
+ PROPVARIANT pos;
- return E_NOTIMPL;
+ TRACE("%p.\n", iface);
+
+ pos.vt = VT_EMPTY;
+ return IMFMediaSession_Start(player->session, &GUID_NULL, &pos);
}
static HRESULT WINAPI media_player_Pause(IMFPMediaPlayer *iface)
{
- FIXME("%p.\n", iface);
+ struct media_player *player = impl_from_IMFPMediaPlayer(iface);
- return E_NOTIMPL;
+ TRACE("%p.\n", iface);
+
+ return IMFMediaSession_Pause(player->session);
}
static HRESULT WINAPI media_player_Stop(IMFPMediaPlayer *iface)
{
- FIXME("%p.\n", iface);
+ struct media_player *player = impl_from_IMFPMediaPlayer(iface);
- return E_NOTIMPL;
+ TRACE("%p.\n", iface);
+
+ return IMFMediaSession_Stop(player->session);
}
static HRESULT WINAPI media_player_FrameStep(IMFPMediaPlayer *iface)
--
2.30.2
More information about the wine-devel
mailing list