aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-05 01:29:08 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-05 01:29:08 +0000
commit4e4faf61748d7f10b5d96aa0f9125bf248675de0 (patch)
tree7e4ee9054691892706851cb6cbfe3b28b5e71391 /src/decode.c
parent124854ff511ebca49a219eb82b882595e1a12384 (diff)
downloadmpd-4e4faf61748d7f10b5d96aa0f9125bf248675de0.tar.gz
mpd-4e4faf61748d7f10b5d96aa0f9125bf248675de0.tar.xz
mpd-4e4faf61748d7f10b5d96aa0f9125bf248675de0.zip
see if we can skip past tags
git-svn-id: https://svn.musicpd.org/mpd/trunk@199 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/decode.c b/src/decode.c
index 82909fcc7..b1c0bb012 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -47,8 +47,6 @@
#include <unistd.h>
#include <string.h>
-#define FADE_CHUNKS 1024
-
int * decode_pid = NULL;
void decodeSigHandler(int sig) {
@@ -91,7 +89,7 @@ void quitDecode(PlayerControl * pc, DecoderControl * dc) {
}
int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) {
- int chunks;
+ long chunks;
if(pc->crossFade<=0) return 0;
@@ -104,7 +102,7 @@ int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) {
if(chunks<0) chunks = 0;
- return chunks;
+ return (int)chunks;
}
int waitOnDecode(PlayerControl * pc, AudioFormat * af, DecoderControl * dc,