Be sure to wipe id3 tag after failed parse in playback.c

Change-Id: I000c78e913ab80afa9b82cae937afb5255831b79
This commit is contained in:
Aidan MacDonald 2021-08-06 19:30:53 +01:00
parent d541a72a0e
commit 02b940396b
1 changed files with 2 additions and 1 deletions

View File

@ -1915,7 +1915,8 @@ static int audio_load_track(void)
if (fd >= 0) if (fd >= 0)
{ {
id3_mutex_lock(); id3_mutex_lock();
get_metadata(ub_id3, fd, path); if(!get_metadata(ub_id3, fd, path))
wipe_mp3entry(ub_id3);
id3_mutex_unlock(); id3_mutex_unlock();
close(fd); close(fd);
} }