# HG changeset patch # User Matti Hamalainen # Date 1189566787 -10800 # Node ID 0d5f7629171fdc18fdf023a05b7c169299ba7ff5 # Parent b98f403b829f91a22fa6f1bdd62dc3b369454251 Madplug didn't always calculate song length when needed, fixed. diff -r b98f403b829f -r 0d5f7629171f src/madplug/input.c --- 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");