Nikolay Sivov : mfplay: Forward playback control methods to the session.

Alexandre Julliard julliard at winehq.org
Wed Apr 7 15:48:30 CDT 2021


Module: wine
Branch: master
Commit: c3c51485fbdad050cc0b347545a23e647fadf86a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c3c51485fbdad050cc0b347545a23e647fadf86a

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Apr  7 11:07:02 2021 +0300

mfplay: Forward playback control methods to the session.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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)




More information about the wine-cvs mailing list