From 5a734c0172647b8da986f5a82dd3a1778ae3b7a0 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sat, 31 Mar 2007 17:50:59 +0000 Subject: Disable looping MOD files played with libmikmod. Many MODs will loop forever without this. git-svn-id: https://svn.musicpd.org/mpd/trunk@5790 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/mod_plugin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/inputPlugins') diff --git a/src/inputPlugins/mod_plugin.c b/src/inputPlugins/mod_plugin.c index 6adb5e19f..0ac72b838 100644 --- a/src/inputPlugins/mod_plugin.c +++ b/src/inputPlugins/mod_plugin.c @@ -148,6 +148,9 @@ static mod_Data *mod_open(char *path) if (!(moduleHandle = Player_Load(path, 128, 0))) return NULL; + /* Prevent module from looping forever */ + moduleHandle->loop = 0; + data = xmalloc(sizeof(mod_Data)); data->audio_buffer = xmalloc(MIKMOD_FRAME_SIZE); -- cgit v1.2.3