input: fix restart of all ES when changing renderer
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.
Showing with 41 additions and 6 deletions