aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-06 20:14:38 +0100
committerMax Kellermann <max@duempel.org>2013-11-06 20:14:38 +0100
commitad27d06979311005560ee02a87595817f4ad2933 (patch)
treee704fda361171e6e2bb204aaa8d10be491d89766
parentc4b1251d0a7fdf86e5ff64720ea1945f5dd6ef52 (diff)
downloadmpd-ad27d06979311005560ee02a87595817f4ad2933.tar.gz
mpd-ad27d06979311005560ee02a87595817f4ad2933.tar.xz
mpd-ad27d06979311005560ee02a87595817f4ad2933.zip
PlayerThread: enable buffering when starting playback
For some reason, this got lost in commit 975deca8. Re-enabling this fixes stuttering at the beginning of radio streams.
-rw-r--r--NEWS1
-rw-r--r--src/PlayerThread.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index ab7e1116c..d3465bf65 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ ver 0.18.2 (2013/??/??)
* decoder:
- audiofile: require libaudiofile 0.3 due to API breakage
- dsf: enable DSD128
+* enable buffering when starting playback (regression fix)
* fix build failures due to missing includes
* fix big-endian support
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx
index 73a5a0527..e2e3ee3a4 100644
--- a/src/PlayerThread.cxx
+++ b/src/PlayerThread.cxx
@@ -131,7 +131,7 @@ public:
Player(PlayerControl &_pc, DecoderControl &_dc,
MusicBuffer &_buffer)
:pc(_pc), dc(_dc), buffer(_buffer),
- buffering(false),
+ buffering(true),
decoder_starting(false),
paused(false),
queued(true),