@@ -59,19 +59,25 @@ static void decodeStart(void)
|
|||||||
will be available then */
|
will be available then */
|
||||||
|
|
||||||
while (!inStream.ready) {
|
while (!inStream.ready) {
|
||||||
if (dc.command != DECODE_COMMAND_NONE)
|
if (dc.command != DECODE_COMMAND_NONE) {
|
||||||
goto stop;
|
input_stream_close(&inStream);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ret = input_stream_buffer(&inStream);
|
ret = input_stream_buffer(&inStream);
|
||||||
if (ret < 0)
|
if (ret < 0) {
|
||||||
goto stop;
|
input_stream_close(&inStream);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* for http streams, seekable is determined in input_stream_buffer */
|
/* for http streams, seekable is determined in input_stream_buffer */
|
||||||
dc.seekable = inStream.seekable;
|
dc.seekable = inStream.seekable;
|
||||||
|
|
||||||
if (dc.command == DECODE_COMMAND_STOP)
|
if (dc.command == DECODE_COMMAND_STOP) {
|
||||||
goto stop;
|
input_stream_close(&inStream);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ret = false;
|
ret = false;
|
||||||
if (!song_is_file(song)) {
|
if (!song_is_file(song)) {
|
||||||
@@ -156,7 +162,6 @@ static void decodeStart(void)
|
|||||||
: DECODE_ERROR_FILE;
|
: DECODE_ERROR_FILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
stop:
|
|
||||||
if (close_instream)
|
if (close_instream)
|
||||||
input_stream_close(&inStream);
|
input_stream_close(&inStream);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user