diff options
author | Michał Cichoń <michcic@gmail.com> | 2015-12-10 01:34:44 +0100 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2015-12-10 01:34:44 +0100 |
commit | acabd52d772e055080c5e58ec08e51a5017e9442 (patch) | |
tree | 40e8c06ea77ac61e1c203a0663e1bebc043888a7 /src/player | |
parent | 81ef4f32ebb07b768a7cc4a8937a624cdcdc6f80 (diff) | |
parent | 041a1ef65bdbc23ac6774ef2b06f1fe6ddba5e4d (diff) | |
download | pianobar-windows-acabd52d772e055080c5e58ec08e51a5017e9442.tar.gz pianobar-windows-acabd52d772e055080c5e58ec08e51a5017e9442.tar.bz2 pianobar-windows-acabd52d772e055080c5e58ec08e51a5017e9442.zip |
Windows 8+ compatibility and WMF player fixes.
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) |