aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-02-27 01:35:23 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-02-27 01:35:23 +0000
commit9b1c5505973abffe1e3c3ab3ba7f84664fbf161f (patch)
treea4e393b11fce35995d218ccb451c165465c46a54 /src/decode.c
parentce1d377d697036886ea13f9a66810bc70b748d90 (diff)
downloadmpd-9b1c5505973abffe1e3c3ab3ba7f84664fbf161f.tar.gz
mpd-9b1c5505973abffe1e3c3ab3ba7f84664fbf161f.tar.xz
mpd-9b1c5505973abffe1e3c3ab3ba7f84664fbf161f.zip
add xfade and audio to status, remove crossfade no args options
git-svn-id: https://svn.musicpd.org/mpd/trunk@75 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c
index f9e07db62..3ad93626c 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -17,6 +17,7 @@
*/
#include "decode.h"
+
#include "player.h"
#include "playerData.h"
#include "utils.h"
@@ -123,6 +124,9 @@ int waitOnDecode(PlayerControl * pc, AudioFormat * af, DecoderControl * dc,
pc->elapsedTime = 0;
pc->bitRate = 0;
+ pc->sampleRate = af->sampleRate;
+ pc->bits = af->bits;
+ pc->channels = af->channels;
pc->totalTime = cb->totalTime;
return 0;