diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-02-29 08:10:52 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-02-29 08:10:52 +0000 |
commit | 41b63bbe47760c9e313f1397b7c0314c258153b1 (patch) | |
tree | 529a9cef8373c862eb0d229d26618e20f7c120b7 /src/mp3_decode.c | |
parent | cfd0e18dc43c2e3251167da85b2c5ed691aac824 (diff) | |
download | mpd-41b63bbe47760c9e313f1397b7c0314c258153b1.tar.gz mpd-41b63bbe47760c9e313f1397b7c0314c258153b1.tar.xz mpd-41b63bbe47760c9e313f1397b7c0314c258153b1.zip |
fix a stupid bug where i was storing the decode_pid directorly from fork()
call, and since decode_pid is shared now, it may get assigned zero after
the parent assigns it the true pid, not good!!
git-svn-id: https://svn.musicpd.org/mpd/trunk@124 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/mp3_decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c index 6681c8469..5defdcf30 100644 --- a/src/mp3_decode.c +++ b/src/mp3_decode.c @@ -479,7 +479,7 @@ void initAudioFormatFromMp3DecodeData(mp3DecodeData * data, AudioFormat * af) { int mp3_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) { mp3DecodeData data; - + if(openMp3(dc->file,&data) < 0) { ERROR("Input does not appear to be a mp3 bit stream.\n"); return -1; |