diff src/pls/pls.c @ 1675:ae9b0327b620

Fix plugins to conform with PLAYLIST_{UN}LOCK() change.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 09 Sep 2007 22:06:10 +0300
parents 13dd4f9bd4b4
children 2ebeb7816c5e
line wrap: on
line diff
--- a/src/pls/pls.c	Sat Sep 08 21:21:30 2007 -0500
+++ b/src/pls/pls.c	Sun Sep 09 22:06:10 2007 +0300
@@ -110,7 +110,7 @@
     vfs_fprintf(file, "[playlist]\n");
     vfs_fprintf(file, "NumberOfEntries=%d\n", playlist_get_length(playlist));
 
-    PLAYLIST_LOCK(playlist->mutex);
+    PLAYLIST_LOCK(playlist);
 
     for (node = playlist->entries; node; node = g_list_next(node)) {
         PlaylistEntry *entry = PLAYLIST_ENTRY(node->data);
@@ -127,7 +127,7 @@
         g_free(fn);
     }
 
-    PLAYLIST_UNLOCK(playlist->mutex);
+    PLAYLIST_UNLOCK(playlist);
 
     vfs_fclose(file);
 }