aac, mod: don't check for SEEK command
Since the aac and mod plugins have told MPD that they cannot seek, MPD will never send a SEEK command to them. Removed the SEEK comand checks from both plugins.
This commit is contained in:
parent
c9e15bc418
commit
3f6fcfd38e
@ -414,9 +414,7 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
|
|||||||
decoder_data(mpd_decoder, NULL, sampleBuffer,
|
decoder_data(mpd_decoder, NULL, sampleBuffer,
|
||||||
sampleBufferLen, file_time,
|
sampleBufferLen, file_time,
|
||||||
bitRate, NULL);
|
bitRate, NULL);
|
||||||
if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_SEEK) {
|
if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_STOP)
|
||||||
decoder_seek_error(mpd_decoder);
|
|
||||||
} else if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_STOP)
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -427,10 +425,6 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
|
|||||||
if (!initialized)
|
if (!initialized)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_SEEK) {
|
|
||||||
decoder_seek_error(mpd_decoder);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -550,9 +544,7 @@ aac_decode(struct decoder *mpd_decoder, const char *path)
|
|||||||
decoder_data(mpd_decoder, NULL, sampleBuffer,
|
decoder_data(mpd_decoder, NULL, sampleBuffer,
|
||||||
sampleBufferLen, file_time,
|
sampleBufferLen, file_time,
|
||||||
bitRate, NULL);
|
bitRate, NULL);
|
||||||
if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_SEEK) {
|
if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_STOP)
|
||||||
decoder_seek_error(mpd_decoder);
|
|
||||||
} else if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_STOP)
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -563,10 +555,6 @@ aac_decode(struct decoder *mpd_decoder, const char *path)
|
|||||||
if (!initialized)
|
if (!initialized)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_SEEK) {
|
|
||||||
decoder_seek_error(mpd_decoder);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,10 +200,6 @@ mod_decode(struct decoder *decoder, const char *path)
|
|||||||
decoder_initialized(decoder, &audio_format, false, 0);
|
decoder_initialized(decoder, &audio_format, false, 0);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (decoder_get_command(decoder) == DECODE_COMMAND_SEEK) {
|
|
||||||
decoder_seek_error(decoder);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (decoder_get_command(decoder) == DECODE_COMMAND_STOP)
|
if (decoder_get_command(decoder) == DECODE_COMMAND_STOP)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user