diff options
author | Michał Cichoń <michcic@gmail.com> | 2015-12-10 11:57:00 +0100 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2015-12-10 11:57:00 +0100 |
commit | 6dee813dad2dd0b741025be046dfe3c7019bddb9 (patch) | |
tree | e075e6f55aea250f5ca1bb628a15327f52f3789e /src/player | |
parent | 13e06e633d966a7600794deb43d725cbd89e108c (diff) | |
parent | 754a62188d0fa2bc29c7089a6beccea9622c9911 (diff) | |
download | pianobar-windows-6dee813dad2dd0b741025be046dfe3c7019bddb9.tar.gz pianobar-windows-6dee813dad2dd0b741025be046dfe3c7019bddb9.tar.bz2 pianobar-windows-6dee813dad2dd0b741025be046dfe3c7019bddb9.zip |
Merge branch 'release/2015.12.10'2015.12.10
Diffstat (limited to 'src/player')
-rw-r--r-- | src/player/backends/media_foundation.cpp | 12 |
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) |