summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-08-06 19:30:53 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-08-06 18:34:04 +0000
commit02b940396bb1fcb535e20dd5b5ada21ed7ce0ea7 (patch)
tree43279d91617973b905d9e980b94552b2c0540e96
parentd541a72a0e23af74b0d7fd4df604f78f4d91f417 (diff)
Be sure to wipe id3 tag after failed parse in playback.c
Change-Id: I000c78e913ab80afa9b82cae937afb5255831b79
-rw-r--r--apps/playback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index ef4b38da51..5a6f18735b 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1915,7 +1915,8 @@ static int audio_load_track(void)
if (fd >= 0)
{
id3_mutex_lock();
- get_metadata(ub_id3, fd, path);
+ if(!get_metadata(ub_id3, fd, path))
+ wipe_mp3entry(ub_id3);
id3_mutex_unlock();
close(fd);
}