Mercurial > audlegacy-plugins
diff src/m3u/m3u.c @ 92:fadf346ddde3 trunk
[svn] - pls doesn't go along with PLAYLIST_LOCK in playlist_save().
author | yaz |
---|---|
date | Thu, 12 Oct 2006 21:13:45 -0700 |
parents | 77e8e032601b |
children | f7a8c1280ef6 |
line wrap: on
line diff
--- a/src/m3u/m3u.c Thu Oct 12 09:05:01 2006 -0700 +++ b/src/m3u/m3u.c Thu Oct 12 21:13:45 2006 -0700 @@ -153,6 +153,8 @@ 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); @@ -177,6 +179,8 @@ vfs_fprintf(file, "%s\n", entry->filename); } + PLAYLIST_UNLOCK(); + vfs_fclose(file); }