ffmpegdecoder: fixed deadlock on non-video streams
This commit is contained in:
@@ -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_);
|
||||||
|
|||||||
Reference in New Issue
Block a user