From 9b622a61da8537b1b4b5f6727e867cdd1be79956 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Tue, 10 Dec 2013 22:22:07 +0100 Subject: m3u: never reuse title/artist from previous M3UINF --- plugins/m3u/m3u.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/m3u') diff --git a/plugins/m3u/m3u.c b/plugins/m3u/m3u.c index e874776d..bedaff6f 100644 --- a/plugins/m3u/m3u.c +++ b/plugins/m3u/m3u.c @@ -199,6 +199,9 @@ load_m3u (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab deadbeef->pl_add_meta (it, "artist", artist); } } + // reset title/artist, to avoid them from being reused in the next track + memset (title, 0, sizeof (title)); + memset (artist, 0, sizeof (artist)); } else { int l = strlen (nm); -- cgit v1.2.3