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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 0c2407eac..7da0269c0 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -26,6 +26,7 @@
#include "main_notify.h"
#include "crossfade.h"
#include "song.h"
+#include "pipe.h"
enum xfade_state {
XFADE_DISABLED = -1,
@@ -205,8 +206,9 @@ static void processDecodeInput(struct player *player)
}
}
-static int playChunk(ob_chunk * chunk,
- const struct audio_format *format, double sizeToTime)
+static int
+playChunk(struct music_chunk *chunk, const struct audio_format *format,
+ double sizeToTime)
{
pc.elapsedTime = chunk->times;
pc.bitRate = chunk->bitRate;
@@ -355,7 +357,7 @@ static void do_play(void)
notify_wait(&pc.notify);
else if (!ob_is_empty() &&
(int)ob.begin != player.next_song_chunk) {
- ob_chunk *beginChunk = ob_get_chunk(ob.begin);
+ struct music_chunk *beginChunk = ob_get_chunk(ob.begin);
unsigned int fadePosition;
if (player.xfade == XFADE_ENABLED &&
player.next_song_chunk >= 0 &&