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/adplug | |
parent | 3ad2ab778c22422252743e638e475acc2d966b7c (diff) |
fixed pl_lock in adplug and sid
Diffstat (limited to 'plugins/adplug')
-rw-r--r-- | plugins/adplug/adplug-db.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/adplug/adplug-db.cpp b/plugins/adplug/adplug-db.cpp index 6e6242e6..a3e0c322 100644 --- a/plugins/adplug/adplug-db.cpp +++ b/plugins/adplug/adplug-db.cpp @@ -108,7 +108,9 @@ adplug_init (DB_fileinfo_t *_info, DB_playItem_t *it) { info->opl = new CKemuopl (samplerate, bps == 16, channels == 2); } } + deadbeef->pl_lock (); info->decoder = CAdPlug::factory (deadbeef->pl_find_meta (it, ":URI"), info->opl, CAdPlug::players); + deadbeef->pl_unlock (); if (!info->decoder) { trace ("adplug: failed to open %s\n", deadbeef->pl_find_meta (it, ":URI")); return -1; |