Commit 0c875b0a authored by François Grisez's avatar François Grisez

Fix VideoToolbox dead lock on iOS 11.

parent b91aaa51
......@@ -132,6 +132,7 @@ void VideoToolboxDecoder::createDecoder() {
void VideoToolboxDecoder::destroyDecoder() {
vt_dec_message("destroying decoder");
VTDecompressionSessionWaitForAsynchronousFrames(_session);
VTDecompressionSessionInvalidate(_session);
CFRelease(_session);
CFRelease(_formatDesc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment