changeset 90:77e8e032601b trunk

[svn] - fix for lock contention on saving m3u. locking playlist has been done in playlist_save().
author yaz
date Thu, 12 Oct 2006 06:21:12 -0700
parents bb090afdc868
children 6e1002ea4ded
files ChangeLog src/m3u/m3u.c
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 12 05:04:58 2006 -0700
+++ b/ChangeLog	Thu Oct 12 06:21:12 2006 -0700
@@ -1,3 +1,12 @@
+2006-10-12 12:04:58 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [178]
+  - some fixes via alxorlov on the forums
+  
+  trunk/src/m3u/m3u.c         |   12 +++++++-----
+  trunk/src/mpg123/fileinfo.c |    6 ++++--
+  2 files changed, 11 insertions(+), 7 deletions(-)
+
+
 2006-10-07 20:34:06 +0000  Jonathan Schleifer <js@h3c.de>
   revision [176]
   - Replace ?= at CFLAGS, CPPFLAGS and CXXFLAGS with +=
--- a/src/m3u/m3u.c	Thu Oct 12 05:04:58 2006 -0700
+++ b/src/m3u/m3u.c	Thu Oct 12 06:21:12 2006 -0700
@@ -153,8 +153,6 @@
     if (cfg.use_pl_metadata)
         vfs_fprintf(file, "#EXTM3U\n");
 
-    PLAYLIST_LOCK();
-
     for (node = playlist_get(); node; node = g_list_next(node)) {
         PlaylistEntry *entry = PLAYLIST_ENTRY(node->data);
 
@@ -179,8 +177,6 @@
         vfs_fprintf(file, "%s\n", entry->filename);
     }
 
-    PLAYLIST_UNLOCK();
-
     vfs_fclose(file);
 }