summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c
index 5421310..0476a6b 100644
--- a/src/player.c
+++ b/src/player.c
@@ -416,8 +416,9 @@ void *BarPlayerThread (void *data) {
player_t * const player = data;
intptr_t pret = PLAYER_RET_OK;
- bool retry = false;
+ bool retry;
do {
+ retry = false;
if (openStream (player)) {
if (openFilter (player) && openDevice (player)) {
retry = play (player) == AVERROR_INVALIDDATA;