Commit 5719207d authored by Max Kellermann's avatar Max Kellermann

gme: don't loop forever, fall back to GME's default play length

parent a84fbbe3
...@@ -3,6 +3,7 @@ ver 0.19.11 (not yet released) ...@@ -3,6 +3,7 @@ ver 0.19.11 (not yet released)
- ape: fix buffer overflow - ape: fix buffer overflow
* decoder * decoder
- ffmpeg: fix crash due to wrong avio_alloc_context() call - ffmpeg: fix crash due to wrong avio_alloc_context() call
- gme: don't loop forever, fall back to GME's default play length
* encoder * encoder
- flac: fix crash with 32 bit playback - flac: fix crash with 32 bit playback
* mixer * mixer
......
...@@ -156,7 +156,7 @@ gme_file_decode(Decoder &decoder, Path path_fs) ...@@ -156,7 +156,7 @@ gme_file_decode(Decoder &decoder, Path path_fs)
return; return;
} }
const int length = ti->length; const int length = ti->play_length;
gme_free_info(ti); gme_free_info(ti);
const SignedSongTime song_len = length > 0 const SignedSongTime song_len = length > 0
...@@ -239,9 +239,9 @@ gme_scan_file(Path path_fs, ...@@ -239,9 +239,9 @@ gme_scan_file(Path path_fs,
assert(ti != nullptr); assert(ti != nullptr);
if (ti->length > 0) if (ti->play_length > 0)
tag_handler_invoke_duration(handler, handler_ctx, tag_handler_invoke_duration(handler, handler_ctx,
SongTime::FromMS(ti->length)); SongTime::FromMS(ti->play_length));
if (ti->song != nullptr) { if (ti->song != nullptr) {
if (gme_track_count(emu) > 1) { if (gme_track_count(emu) > 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment