changeset 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 416cca12988f
children aee4ebea943a
files src/m3u/m3u.c src/mtp_up/mtp.c src/pls/pls.c src/xspf/xspf.c
diffstat 4 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/m3u/m3u.c	Sat Sep 08 21:21:30 2007 -0500
+++ b/src/m3u/m3u.c	Sun Sep 09 22:06:10 2007 +0300
@@ -166,7 +166,7 @@
     if (cfg.use_pl_metadata)
         vfs_fprintf(file, "#EXTM3U\n");
 
-    PLAYLIST_LOCK(playlist->mutex);
+    PLAYLIST_LOCK(playlist);
 
     for (node = playlist->entries; node; node = g_list_next(node)) {
         PlaylistEntry *entry = PLAYLIST_ENTRY(node->data);
@@ -194,7 +194,7 @@
         g_free(fn);
     }
 
-    PLAYLIST_UNLOCK(playlist->mutex);
+    PLAYLIST_UNLOCK(playlist);
 
     vfs_fclose(file);
 }
--- a/src/mtp_up/mtp.c	Sat Sep 08 21:21:30 2007 -0500
+++ b/src/mtp_up/mtp.c	Sun Sep 09 22:06:10 2007 +0300
@@ -110,7 +110,7 @@
     Playlist *current_play = playlist_get_active();
 
     node = current_play->entries;
-    PLAYLIST_LOCK(current_play->mutex);     /*needed so that the user doesn't modify the selection*/ 
+    PLAYLIST_LOCK(current_play);            /*needed so that the user doesn't modify the selection*/ 
     while (node)                            /*while creating the list of files to be uploaded*/
     {
         entry = PLAYLIST_ENTRY(node->data);
@@ -122,7 +122,7 @@
         }
         node = g_list_next(node);
     }
-    PLAYLIST_UNLOCK(current_play->mutex);
+    PLAYLIST_UNLOCK(current_play);
     return g_list_reverse(up_list);
 }
 
--- 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);
 }
--- a/src/xspf/xspf.c	Sat Sep 08 21:21:30 2007 -0500
+++ b/src/xspf/xspf.c	Sun Sep 09 22:06:10 2007 +0300
@@ -371,7 +371,7 @@
     xmlSetProp(rootnode, (xmlChar *)"version", (xmlChar *)"1");
     xmlSetProp(rootnode, (xmlChar *)"xmlns", (xmlChar *)XSPF_XMLNS);
 
-    PLAYLIST_LOCK(playlist->mutex);
+    PLAYLIST_LOCK(playlist);
 
     /* relative */
     if (playlist->attribute & PLAYLIST_USE_RELATIVE) {
@@ -561,7 +561,7 @@
         filename = NULL;
     }
 
-    PLAYLIST_UNLOCK(playlist->mutex);
+    PLAYLIST_UNLOCK(playlist);
 
     xmlSaveFormatFile(filename, doc, 1);
     xmlFreeDoc(doc);