Commit 9cfb4c03 authored by Eric Wong's avatar Eric Wong

decode: fix some uninitialized variable warnings

They're probably not needed, but less noise => faster debugging git-svn-id: https://svn.musicpd.org/mpd/trunk@7302 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent e566c4c6
...@@ -408,10 +408,10 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * ...@@ -408,10 +408,10 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
/** cross fading enabled for the current song? 0=must check; /** cross fading enabled for the current song? 0=must check;
1=enabled; -1=disabled */ 1=enabled; -1=disabled */
int doCrossFade = 0; int doCrossFade = 0;
unsigned int crossFadeChunks; unsigned int crossFadeChunks = 0;
/** the position of the next cross-faded chunk in the next /** the position of the next cross-faded chunk in the next
song */ song */
int nextChunk; int nextChunk = 0;
int decodeWaitedOn = 0; int decodeWaitedOn = 0;
static const char silence[CHUNK_SIZE]; static const char silence[CHUNK_SIZE];
double sizeToTime = 0.0; double sizeToTime = 0.0;
......
...@@ -394,7 +394,7 @@ size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer, ...@@ -394,7 +394,7 @@ size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer,
char *outBuffer, ConvState *convState) char *outBuffer, ConvState *convState)
{ {
const char *buf; const char *buf;
size_t len; size_t len = 0;
size_t outSize = pcm_sizeOfConvBuffer(inFormat, inSize, outFormat); size_t outSize = pcm_sizeOfConvBuffer(inFormat, inSize, outFormat);
assert(outFormat->bits == 16); assert(outFormat->bits == 16);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment