summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/player/backends/media_foundation.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/player/backends/media_foundation.cpp b/src/player/backends/media_foundation.cpp
index 6aa0d00..6ad39c5 100644
--- a/src/player/backends/media_foundation.cpp
+++ b/src/player/backends/media_foundation.cpp
@@ -1043,22 +1043,26 @@ extern "C" bool WMFPlayerOpen(player2_t player, const char* url)
extern "C" bool WMFPlayerPlay(player2_t player)
{
- return SUCCEEDED(player->player->Play());
+ player->player->Play();
+ return true;
}
extern "C" bool WMFPlayerPause(player2_t player)
{
- return SUCCEEDED(player->player->Pause());
+ player->player->Pause();
+ return true;
}
extern "C" bool WMFPlayerStop(player2_t player)
{
- return SUCCEEDED(player->player->Stop());
+ player->player->Stop();
+ return true;
}
extern "C" bool WMFPlayerFinish(player2_t player)
{
- return SUCCEEDED(player->player->Stop());
+ player->player->Stop();
+ return true;
}
extern "C" bool WMFPlayerIsPlaying(player2_t player)