diff options
Diffstat (limited to 'plugins/ffap/ffap.c')
-rw-r--r-- | plugins/ffap/ffap.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |