# HG changeset patch # User Matti Hamalainen # Date 1189364770 -10800 # Node ID ae9b0327b62073688b61a3697d719e56d95bd647 # Parent 416cca12988f6564d582b77555dbead3515e4e67 Fix plugins to conform with PLAYLIST_{UN}LOCK() change. diff -r 416cca12988f -r ae9b0327b620 src/m3u/m3u.c --- 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); } diff -r 416cca12988f -r ae9b0327b620 src/mtp_up/mtp.c --- 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); } diff -r 416cca12988f -r ae9b0327b620 src/pls/pls.c --- 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); } diff -r 416cca12988f -r ae9b0327b620 src/xspf/xspf.c --- 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);