diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-03-31 17:50:59 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-03-31 17:50:59 +0000 |
commit | 5a734c0172647b8da986f5a82dd3a1778ae3b7a0 (patch) | |
tree | 9d1dc450c35e03af9bd8c0d6f39414ad2a51871c | |
parent | ed5f2c195aba2f86819c040e4acb0395429cc962 (diff) | |
download | mpd-5a734c0172647b8da986f5a82dd3a1778ae3b7a0.tar.gz mpd-5a734c0172647b8da986f5a82dd3a1778ae3b7a0.tar.xz mpd-5a734c0172647b8da986f5a82dd3a1778ae3b7a0.zip |
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
-rw-r--r-- | src/inputPlugins/mod_plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |