summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2015-12-10 01:03:05 +0100
committerMichał Cichoń <michcic@gmail.com>2015-12-10 01:32:10 +0100
commitfab63519d2d0225f2e2eed3fa01a74a5acb25d57 (patch)
tree75de51e85ed60b9e71496b62497f119d162277cb
parent20c5fc1767436ee106156a9aabf6545e72a4b519 (diff)
downloadpianobar-windows-fab63519d2d0225f2e2eed3fa01a74a5acb25d57.tar.gz
pianobar-windows-fab63519d2d0225f2e2eed3fa01a74a5acb25d57.tar.bz2
pianobar-windows-fab63519d2d0225f2e2eed3fa01a74a5acb25d57.zip
Don't check errors on Stop() to avoid breaking playlist playback.
-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)