decoder/Client: add DecoderCommand/seek virtual methods

This commit is contained in:
Max Kellermann
2016-11-18 08:15:07 +01:00
parent 66fb352cca
commit 47a0f46ce8
24 changed files with 156 additions and 172 deletions

View File

@@ -165,8 +165,8 @@ mod_decode(DecoderClient &client, InputStream &is)
0);
if (cmd == DecoderCommand::SEEK) {
ModPlug_Seek(f, decoder_seek_time(client).ToMS());
decoder_command_finished(client);
ModPlug_Seek(f, client.GetSeekTime().ToMS());
client.CommandFinished();
}
} while (cmd != DecoderCommand::STOP);