aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 110705443..eecc351c6 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -18,7 +18,6 @@
#include "player_thread.h"
#include "player_control.h"
-#include "playerData.h"
#include "decoder_control.h"
#include "audio.h"
#include "pcm_utils.h"
@@ -171,7 +170,7 @@ static void do_play(void)
{
int do_pause = 0;
int buffering = 1;
- unsigned int bbp = buffered_before_play;
+ unsigned int bbp = pc.buffered_before_play;
enum xfade_state do_xfade = XFADE_UNKNOWN;
unsigned int crossFadeChunks = 0;
/** the position of the next cross-faded chunk in the next
@@ -277,7 +276,7 @@ static void do_play(void)
cross_fade_calc(pc.crossFade, dc.totalTime,
&(ob.audioFormat),
ob.size -
- buffered_before_play);
+ pc.buffered_before_play);
if (crossFadeChunks > 0) {
do_xfade = XFADE_ENABLED;
nextChunk = -1;