From e2c8b960de29e4fc45f16d980b9ef370de9951d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:45:14 +0200 Subject: moved code to pc_init(), dc_init() --- src/player_thread.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/player_thread.c') 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; -- cgit v1.2.3