Allow 4 decode threads at same time

This commit is contained in:
tarsin committed 2023-02-14 15:47:57 +08:00
1 parent f7bf1d624b
commit 300505e127
1 file changed
+1 -1
@@ -289,7 +289,7 @@ class SpiderQueenWorker(private val queen: SpiderQueen) : CoroutineScope {
private val decoder = Decoder()
inner class Decoder {
private val mSemaphore = Semaphore(2)
private val mSemaphore = Semaphore(4)
private val mDecodeJobMap = hashMapOf<Int, Job>()
fun cancel(index: Int) {