diff src/pls/pls.c @ 386:de15b9e09d2d trunk

[svn] - updated m3u.c, xspf.c, pls.c to use the playlist->mutex and no more playlist_get
author giacomo
date Sat, 16 Dec 2006 02:56:32 -0800
parents a91923634161
children 8bd5fae12b9c
line wrap: on
line diff
--- a/src/pls/pls.c	Fri Dec 15 21:24:10 2006 -0800
+++ b/src/pls/pls.c	Sat Dec 16 02:56:32 2006 -0800
@@ -96,16 +96,16 @@
     vfs_fprintf(file, "[playlist]\n");
     vfs_fprintf(file, "NumberOfEntries=%d\n", playlist_get_length(playlist));
 
-    PLAYLIST_LOCK();
+    PLAYLIST_LOCK(playlist->mutex);
 
-    for (node = playlist_get(); node; node = g_list_next(node)) {
+    for (node = playlist->entries; node; node = g_list_next(node)) {
         PlaylistEntry *entry = PLAYLIST_ENTRY(node->data);
 
         vfs_fprintf(file, "File%d=%s\n", g_list_position(playlist->entries, node) + 1,
                   entry->filename);
     }
 
-    PLAYLIST_UNLOCK();
+    PLAYLIST_UNLOCK(playlist->mutex);
 
     vfs_fclose(file);
 }