# HG changeset patch # User Yoshiki Yazawa # Date 1202063425 -32400 # Node ID 78a0e19530e2b7fb9705e432d2b883176ff39bd6 # Parent 0405c29fecf7f40bee231b80348ec6fe40852736 allow madplug to compute mp3 duration when TLEN field is invalid. patch by Russell Yanofsky. diff -r 0405c29fecf7 -r 78a0e19530e2 src/madplug/input.c --- a/src/madplug/input.c Sun Feb 03 00:06:33 2008 +0900 +++ b/src/madplug/input.c Mon Feb 04 03:30:25 2008 +0900 @@ -408,7 +408,7 @@ // length string = input_id3_get_string(info->tag, "TLEN"); - if (string) { + if (string && atoi(string)) { aud_tuple_associate_int(tuple, FIELD_LENGTH, NULL, atoi(string)); AUDDBG("input_read_tag: TLEN = %d\n", atoi(string)); g_free(string);