diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:45:14 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:45:14 +0200 |
commit | e2c8b960de29e4fc45f16d980b9ef370de9951d3 (patch) | |
tree | bbe802c9efd9b677d91c9d7052382af147e5190f /src/player_thread.c | |
parent | 5e51fa020dcf634d2c5442ed6c5de108420c7574 (diff) | |
download | mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.gz mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.xz mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.zip |
moved code to pc_init(), dc_init()
Diffstat (limited to '')
-rw-r--r-- | src/player_thread.c | 5 |
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; |