ffmpegdecoder: fixed double mutex lock

Error() would call Close() getting stuck in a double mutex lock that could
stall workers. This commit fixes that.
This commit is contained in:
itsmattkc
2020-02-21 20:04:36 +11:00
parent 6c33e85162
commit b0c9711974
3 changed files with 32 additions and 40 deletions
-5
View File
@@ -18,11 +18,6 @@ void IndexTask::Action()
decoder->set_stream(stream_);
// Force multithreading for faster indexing
if (decoder->id() == "ffmpeg") {
static_cast<FFmpegDecoder*>(decoder.get())->SetMultithreading(true);
}
connect(decoder.get(), &Decoder::IndexProgress, this, &IndexTask::ProgressChanged);
decoder->Open();