From 06698504cafb9d3b87674c51bbd49dbbb6a54db0 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Thu, 11 Feb 2010 20:03:10 +0100 Subject: playlist thread-safety measures --- plugins/ffap/ffap.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/ffap') diff --git a/plugins/ffap/ffap.c b/plugins/ffap/ffap.c index 23daa170..d8acaff5 100644 --- a/plugins/ffap/ffap.c +++ b/plugins/ffap/ffap.c @@ -1726,14 +1726,17 @@ ffap_insert (DB_playItem_t *after, const char *fname) { } // embedded cue + deadbeef->pl_lock (); const char *cuesheet = deadbeef->pl_find_meta (it, "cuesheet"); if (cuesheet) { cue = deadbeef->pl_insert_cue_from_buffer (after, it, cuesheet, strlen (cuesheet), ape_ctx.totalsamples, ape_ctx.samplerate); if (cue) { deadbeef->pl_item_unref (it); + deadbeef->pl_unlock (); return cue; } } + deadbeef->pl_unlock (); deadbeef->pl_add_meta (it, "title", NULL); after = deadbeef->pl_insert_item (after, it); -- cgit v1.2.3