diff options
Diffstat (limited to 'src/decoder/plugins/Mpg123DecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/Mpg123DecoderPlugin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/plugins/Mpg123DecoderPlugin.cxx b/src/decoder/plugins/Mpg123DecoderPlugin.cxx index cc019cffc..3a51f616a 100644 --- a/src/decoder/plugins/Mpg123DecoderPlugin.cxx +++ b/src/decoder/plugins/Mpg123DecoderPlugin.cxx @@ -264,7 +264,8 @@ mpd_mpg123_file_decode(DecoderClient &client, Path path_fs) client.SeekError(); else { client.CommandFinished(); - client.SubmitTimestamp(c / (double)audio_format.sample_rate); + client.SubmitTimestamp(FloatDuration(c) + / audio_format.sample_rate); } cmd = DecoderCommand::NONE; |