diff src/madplug/input.c @ 1709:0d5f7629171f

Madplug didn't always calculate song length when needed, fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 12 Sep 2007 06:13:07 +0300
parents d158ce84fda7
children 5fa26178eaef
line wrap: on
line diff
--- a/src/madplug/input.c	Tue Sep 11 10:52:25 2007 -0500
+++ b/src/madplug/input.c	Wed Sep 12 06:13:07 2007 +0300
@@ -418,7 +418,8 @@
 #endif	
         g_free(string);
         string = NULL;
-    }
+    } else
+        tuple_associate_int(tuple, FIELD_LENGTH, NULL, -1);
     
     tuple_associate_string(tuple, FIELD_CODEC, NULL, "MPEG Audio (MP3)");
     tuple_associate_string(tuple, FIELD_QUALITY, NULL, "lossy");