summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--streamer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index 940891c7..c06391e5 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1127,8 +1127,10 @@ void
streamer_reset (int full) { // must be called when current song changes by external reasons
src_lock ();
if (full) {
+ streamer_lock ();
streambuffer_pos = 0;
streambuffer_fill = 0;
+ streamer_unlock ();
}
src_remaining = 0;
src_reset (src);