From 075c04fec9ea0c59938e6152b3b875a328f4bc13 Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 18 May 2012 16:49:12 +0200 Subject: fixed pl_lock in adplug and sid --- plugins/sid/csid.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/sid') diff --git a/plugins/sid/csid.cpp b/plugins/sid/csid.cpp index 2bb5b84e..6658850e 100644 --- a/plugins/sid/csid.cpp +++ b/plugins/sid/csid.cpp @@ -299,7 +299,9 @@ csid_init (DB_fileinfo_t *_info, DB_playItem_t *it) { // libsidplay crashes if file doesn't exist // so i have to check it here + deadbeef->pl_lock (); DB_FILE *fp = deadbeef->fopen (deadbeef->pl_find_meta (it, ":URI")); + deadbeef->pl_unlock (); if (!fp ){ return -1; } @@ -318,7 +320,9 @@ csid_init (DB_fileinfo_t *_info, DB_playItem_t *it) { info->resid->sampling (samplerate); info->duration = deadbeef->pl_get_item_duration (it); + deadbeef->pl_lock (); info->tune = new SidTune (deadbeef->pl_find_meta (it, ":URI")); + deadbeef->pl_unlock (); info->tune->selectSong (deadbeef->pl_find_meta_int (it, ":TRACKNUM", 0)+1); sid2_config_t conf; -- cgit v1.2.3