mirror of
https://github.com/home-assistant/core.git
synced 2025-06-13 01:27:08 +00:00
Reuse codec_context on stream thread restart (#71942)
This commit is contained in:
parent
3de31939d8
commit
0608506bac
@ -395,6 +395,9 @@ class KeyFrameConverter:
|
|||||||
This is run by the worker thread and will only be called once per worker.
|
This is run by the worker thread and will only be called once per worker.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if self._codec_context:
|
||||||
|
return
|
||||||
|
|
||||||
# Keep import here so that we can import stream integration without installing reqs
|
# Keep import here so that we can import stream integration without installing reqs
|
||||||
# pylint: disable=import-outside-toplevel
|
# pylint: disable=import-outside-toplevel
|
||||||
from av import CodecContext
|
from av import CodecContext
|
||||||
|
Loading…
x
Reference in New Issue
Block a user