summaryrefslogtreecommitdiff
path: root/src/player/backends
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2015-12-10 11:57:00 +0100
committerMichał Cichoń <michcic@gmail.com>2015-12-10 11:57:00 +0100
commit6dee813dad2dd0b741025be046dfe3c7019bddb9 (patch)
treee075e6f55aea250f5ca1bb628a15327f52f3789e /src/player/backends
parent13e06e633d966a7600794deb43d725cbd89e108c (diff)
parent754a62188d0fa2bc29c7089a6beccea9622c9911 (diff)
downloadpianobar-windows-2015.12.10.tar.gz
pianobar-windows-2015.12.10.tar.bz2
pianobar-windows-2015.12.10.zip
Merge branch 'release/2015.12.10'2015.12.10
Diffstat (limited to 'src/player/backends')
-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)