[vlc-commits] [Git][videolan/vlc][master] GME: make the old behaviour for looping an option
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Thu Apr 16 16:50:06 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
602689b0 by Jean-Baptiste Kempf at 2026-04-16T18:34:01+02:00
GME: make the old behaviour for looping an option
See #27612 and see discussion upstream:
https://github.com/libgme/game-music-emu/issues/77#issuecomment-1805027715
- - - - -
1 changed file:
- modules/demux/gme.c
Changes:
=====================================
modules/demux/gme.c
=====================================
@@ -38,10 +38,15 @@
static int Open (vlc_object_t *);
static void Close (vlc_object_t *);
+#define GME_PLAYBACK_LIMIT N_("Automatically use track length metadata as the fadeout time")
+
vlc_module_begin ()
set_shortname ("GME")
set_description ("Game Music Emu")
set_subcategory (SUBCAT_INPUT_DEMUX)
+#if GME_VERSION >= 0x000603
+ add_bool("gme-playback-limit", false, GME_PLAYBACK_LIMIT, GME_PLAYBACK_LIMIT)
+#endif
set_capability ("demux", 10)
set_callbacks (Open, Close)
vlc_module_end ()
@@ -106,6 +111,14 @@ static int Open (vlc_object_t *obj)
free (sys);
return VLC_ENOMEM;
}
+
+ /* Autoload
+ * See https://github.com/libgme/game-music-emu/issues/77#issuecomment-1805027715 */
+#if GME_VERSION >= 0x000603
+ bool playback_limit = var_InheritBool(demux, "gme-playback-limit");
+ gme_set_autoload_playback_limit (sys->emu, playback_limit);
+#endif
+
if (data)
{
gme_load_custom (sys->emu, ReaderBlock, data->i_buffer, data);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/602689b007b658f221701c424d134470c8ff815e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/602689b007b658f221701c424d134470c8ff815e
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list