aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins/GmeDecoderPlugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/plugins/GmeDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/GmeDecoderPlugin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/plugins/GmeDecoderPlugin.cxx b/src/decoder/plugins/GmeDecoderPlugin.cxx
index 5588e2a1e..e1b281f93 100644
--- a/src/decoder/plugins/GmeDecoderPlugin.cxx
+++ b/src/decoder/plugins/GmeDecoderPlugin.cxx
@@ -156,9 +156,9 @@ gme_file_decode(Decoder &decoder, Path path_fs)
return;
}
- const float song_len = ti->length > 0
- ? ti->length / 1000.0
- : -1.0;
+ const SignedSongTime song_len = ti->length > 0
+ ? SignedSongTime::FromMS(ti->length)
+ : SignedSongTime::Negative();
/* initialize the MPD decoder */