ffmpegdecoder: fixed deadlock on non-video streams

This commit is contained in:
itsmattkc
2020-04-14 23:42:31 +10:00
parent 6046b1e892
commit 9f7a9d85b4
+3 -1
View File
@@ -1297,7 +1297,9 @@ void FFmpegDecoderInstance::ClearResources()
ClearFrameCache(); ClearFrameCache();
// Stop timer // Stop timer
QMetaObject::invokeMethod(&clear_timer_, "stop", Qt::BlockingQueuedConnection); if (clear_timer_.isActive()) {
QMetaObject::invokeMethod(&clear_timer_, "stop", Qt::BlockingQueuedConnection);
}
if (opts_) { if (opts_) {
av_dict_free(&opts_); av_dict_free(&opts_);