summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-01 20:46:26 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-01 20:46:26 +0200
commit6303b539693d1c3aa58c0164e5a9799953abef41 (patch)
treee22ea9989cd944b68fb7ef9247c84d7be28f3c19 /playlist.c
parent7c646ffa127e4cca5a3c602cba7c9940f9c67668 (diff)
improved curl seeking
fixed abnormal termination/hang if curl streamer was active added id3v2 reading for streaming mp3s
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 5370f299..41d25e3e 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1320,3 +1320,14 @@ pl_reshuffle (playItem_t **ppmin, playItem_t **ppmax) {
*ppmax = pmax;
}
}
+
+void
+pl_delete_all_meta (playItem_t *it) {
+ while (it->meta) {
+ metaInfo_t *m = it->meta;
+ it->meta = m->next;
+ free (m->value);
+ free (m);
+ }
+ it->meta = NULL;
+}