codec: videotoolbox: flush before invalidating the session
commit3411f8ba8200878dd291c94b1b546074976c1b6b
authorThomas Guillem <thomas@gllm.fr>
Wed, 27 Sep 2017 16:56:37 +0000 (27 18:56 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 27 Sep 2017 17:16:29 +0000 (27 19:16 +0200)
tree393eda2b089cdac2ac053482682cf8fbcf56f7a6
parent9a1ebc738f2eeab01c3531a5aa501c539ebe92e0
codec: videotoolbox: flush before invalidating the session

This fixes a deadlock when stopping the VT Session on iOS 11.

VTDecompressionSessionInvalidate() can wait indefinitely if
VTDecompressionSessionWaitForAsynchronousFrames() is not called before.
modules/codec/videotoolbox.m