aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-12-23 19:57:28 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-12-23 19:57:28 +0000
commit9bdb0b0df2f5b5e8cae7a8c1696f9506f58e0e04 (patch)
treea95686083f75991ddf01626ad0f517b302ea48d8 /src/decode.c
parent202ae2270d218660cd1b5e2ae31e9ee31483b6d2 (diff)
downloadmpd-9bdb0b0df2f5b5e8cae7a8c1696f9506f58e0e04.tar.gz
mpd-9bdb0b0df2f5b5e8cae7a8c1696f9506f58e0e04.tar.xz
mpd-9bdb0b0df2f5b5e8cae7a8c1696f9506f58e0e04.zip
Adding support for seeking HTTP streams.
git-svn-id: https://svn.musicpd.org/mpd/trunk@5159 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/decode.c b/src/decode.c
index b25cff105..153ad003b 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -285,7 +285,6 @@ static void decodeStart(PlayerControl * pc, OutputBuffer * cb,
return;
}
- dc->seekable = inStream.seekable;
dc->state = DECODE_STATE_START;
dc->start = 0;
@@ -295,6 +294,9 @@ static void decodeStart(PlayerControl * pc, OutputBuffer * cb,
my_usleep(1000);
}
+ /* for http streams, seekable is determined in bufferInputStream */
+ dc->seekable = inStream.seekable;
+
if (dc->stop) {
dc->state = DECODE_STATE_STOP;
dc->stop = 0;