wavpack: tag_new() cannot fail

Since tag_new() uses xmalloc(), it cannot fail - if we're really out
of memory, the process will abort.
This commit is contained in:
Max Kellermann 2008-08-29 09:38:25 +02:00
parent 5e1feb8fa3
commit 055f4a41c5

View File

@ -297,11 +297,6 @@ static struct tag *wavpack_tagdup(char *fname)
}
tag = tag_new();
if (tag == NULL) {
ERROR("failed to tag_new()\n");
return NULL;
}
tag->time =
(float)WavpackGetNumSamples(wpc) / WavpackGetSampleRate(wpc);