diff options
author | waker <wakeroid@gmail.com> | 2012-05-18 16:49:12 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-05-18 16:49:12 +0200 |
commit | 075c04fec9ea0c59938e6152b3b875a328f4bc13 (patch) | |
tree | ae1038e820fa82f867818ba2d70f3a8c36732ba6 /plugins/sid | |
parent | 3ad2ab778c22422252743e638e475acc2d966b7c (diff) |
fixed pl_lock in adplug and sid
Diffstat (limited to 'plugins/sid')
-rw-r--r-- | plugins/sid/csid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |