diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder/aac_plugin.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index f2907129e..90d39113b 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -443,19 +443,18 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) static struct tag *aacTagDup(const char *file) { - struct tag *ret = NULL; int file_time = getAacTotalTime(file); + struct tag *tag; - if (file_time >= 0) { - if ((ret = tag_id3_load(file)) == NULL) - ret = tag_new(); - ret->time = file_time; - } else { + if (file_time < 0) { g_debug("aacTagDup: Failed to get total song time from: %s\n", file); + return NULL; } - return ret; + tag = tag_new(); + tag->time = file_time; + return tag; } static const char *const aac_suffixes[] = { "aac", NULL }; |