summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/pcmbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index cfb297e..a5b5fd0 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -185,8 +185,6 @@ static void pcmbuf_callback(unsigned char** start, size_t* size)
CALL_IF_EXISTS(pcmbuf_event_handler);
}
}
-
- if(pcmbuf_unplayed_bytes <= pcmbuf_watermark) pcmbuf_under_watermark();
}
void pcmbuf_set_position_callback(void (*callback)(size_t size))
@@ -735,7 +733,9 @@ static bool prepare_insert(size_t length)
logf("pcm starting");
pcmbuf_play_start();
}
- }
+ } else if (pcmbuf_unplayed_bytes <= pcmbuf_watermark)
+ pcmbuf_under_watermark();
+
return true;
}