audiofile: fixed misplaced if

[mk: by definition, tag_new() cannot fail - removed check]
This commit is contained in:
Viliam Mateicka 2008-11-18 19:54:42 +01:00 committed by Max Kellermann
parent 63272d6888
commit eac4ed2241

View File

@ -120,7 +120,6 @@ static struct tag *audiofileTagDup(const char *file)
int total_time = getAudiofileTotalTime(file); int total_time = getAudiofileTotalTime(file);
if (total_time >= 0) { if (total_time >= 0) {
if (!ret)
ret = tag_new(); ret = tag_new();
ret->time = total_time; ret->time = total_time;
} else { } else {