summaryrefslogtreecommitdiff
path: root/plugins/gme/cgme.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-12 21:55:45 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-12 21:55:45 +0100
commitab67487ac13aef5089ca4d097bdfe5d49bd977d6 (patch)
treea552219d5733ccc45793f75ca00d150d14f51b2c /plugins/gme/cgme.c
parent210cec3980f707cdaf379cbd59a606fd5f8e5315 (diff)
consider 0 duration as "infinite looping" in gme plugin
Diffstat (limited to 'plugins/gme/cgme.c')
-rw-r--r--plugins/gme/cgme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gme/cgme.c b/plugins/gme/cgme.c
index 31bda830..5b76c7d1 100644
--- a/plugins/gme/cgme.c
+++ b/plugins/gme/cgme.c
@@ -268,7 +268,7 @@ cgme_insert (DB_playItem_t *after, const char *fname) {
char trk[10];
snprintf (trk, 10, "%d", i+1);
deadbeef->pl_add_meta (it, "track", trk);
- if (inf->length == -1) {
+ if (inf->length == -1 || inf->length == 0) {
float songlength = deadbeef->conf_get_float ("gme.songlength", 3);
deadbeef->pl_set_item_duration (it, songlength * 60.f);
}