diff src/xspf/xspf.c @ 92:fadf346ddde3 trunk

[svn] - pls doesn't go along with PLAYLIST_LOCK in playlist_save().
author yaz
date Thu, 12 Oct 2006 21:13:45 -0700
parents fabe64e89949
children b5a1b762f586
line wrap: on
line diff
--- a/src/xspf/xspf.c	Thu Oct 12 09:05:01 2006 -0700
+++ b/src/xspf/xspf.c	Thu Oct 12 21:13:45 2006 -0700
@@ -228,6 +228,8 @@
 	tracklist = xmlNewNode(NULL, "trackList");
 	xmlAddChild(rootnode, tracklist);
 
+	PLAYLIST_LOCK();
+
 	for (node = playlist_get(); node != NULL; node = g_list_next(node))
 	{
 		PlaylistEntry *entry = PLAYLIST_ENTRY(node->data);
@@ -383,6 +385,8 @@
 
 	}
 
+	PLAYLIST_UNLOCK();
+
 	xmlSaveFormatFile(filename, doc, 1);
 	xmlFreeDoc(doc);
 }