Skip to content
  • Thomas Guillem's avatar
    input: fix restart of all ES when changing renderer · d029df0a
    Thomas Guillem authored
    The sout was destroyed before decoders were deleted. This could lead to a
    use-after-free of the sout from the DecoderThread.
    
    To fix this issue, we stop all ES, save the stopped state of all ES, change the
    renderer/sout configuration and restart all previously stopped ES.
    
    Deprecate ES_OUT_RESTART_ALL_ES since it was only used for this case. And
    replace it by ES_OUT_STOP_ALL_ES/ES_OUT_START_ALL_ES, but in private headers.
    
    (cherry picked from commit 72f780a4
    
    )
    Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
    d029df0a