changeset 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 b98f403b829f
children 1359a81e4674
files src/madplug/input.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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");