decoder_api: removed decoder_clear()
Call ob_clear() in decoder_command_finished() instead of implementing that call in every decoder plugin.
This commit is contained in:
@@ -77,6 +77,10 @@ void decoder_command_finished(mpd_unused struct decoder * decoder)
|
||||
assert(dc.command != DECODE_COMMAND_SEEK ||
|
||||
dc.seekError || decoder->seeking);
|
||||
|
||||
if (dc.command == DECODE_COMMAND_SEEK)
|
||||
/* delete frames from the old song position */
|
||||
ob_clear();
|
||||
|
||||
dc.command = DECODE_COMMAND_NONE;
|
||||
notify_signal(&pc.notify);
|
||||
}
|
||||
@@ -209,8 +213,3 @@ void decoder_flush(mpd_unused struct decoder *decoder)
|
||||
{
|
||||
ob_flush();
|
||||
}
|
||||
|
||||
void decoder_clear(mpd_unused struct decoder *decoder)
|
||||
{
|
||||
ob_clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user