aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-20 00:16:24 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-20 00:16:24 +0000
commit05cbc476f5bec2f8e6e13e5c1aeb199b3a614a07 (patch)
treee2c6b17ad453358d3e5de97d00a69bb4632e8c77 /src/decode.c
parent70d439736672922f4897f7b5b5e1a21dfae83040 (diff)
downloadmpd-05cbc476f5bec2f8e6e13e5c1aeb199b3a614a07.tar.gz
mpd-05cbc476f5bec2f8e6e13e5c1aeb199b3a614a07.tar.xz
mpd-05cbc476f5bec2f8e6e13e5c1aeb199b3a614a07.zip
get rid of seekError in DecoderControl
git-svn-id: https://svn.musicpd.org/mpd/trunk@1101 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/decode.c b/src/decode.c
index e3f13fada..a4efafca5 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -179,15 +179,11 @@ int decodeSeek(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb,
pc->totalTime-0.1 :
pc->seekWhere;
dc->seekWhere = 0 > dc->seekWhere ? 0 : dc->seekWhere;
- dc->seekError = 0;
dc->seekChunk = -1;
dc->seek = 1;
- /*pc->bitRate = 0;*/
- /*while(*decode_pid>0 && dc->seek) my_usleep(1000);*/
- /*if(!dc->seekError) {*/
- ret = 0;
- pc->elapsedTime = dc->seekWhere;
- /*}*/
+ pc->elapsedTime = dc->seekWhere;
+ pc->beginTime = pc->elapsedTime;
+ ret = 0;
}
}
pc->seek = 0;
@@ -228,7 +224,6 @@ int decodeSeek(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb,
if(pc->seek) { \
pc->totalPlayTime+= pc->elapsedTime-pc->beginTime; \
if(decodeSeek(pc,dc,cb,&decodeWaitedOn) == 0) { \
- pc->beginTime = pc->elapsedTime; \
doCrossFade = 0; \
nextChunk = -1; \
bbp = 0; \