es_out: add priv controls to set/unset vlc_es_id_t
commit4a6a439a74dfb658a708e342e84992e06f3f91b4
authorThomas Guillem <thomas@gllm.fr>
Thu, 27 Feb 2020 14:33:28 +0000 (27 15:33 +0100)
committerThomas Guillem <thomas@gllm.fr>
Fri, 28 Feb 2020 19:29:35 +0000 (28 20:29 +0100)
tree65a56d5d8eb1f64e1813c8b381ad50939dcf35da
parent31be08d12e5bc7eb3d3d026c2dd5dbb36ddf809d
es_out: add priv controls to set/unset vlc_es_id_t

It's now illegal to control a es_out_id_t directly from input.c.

A refcounted vlc_es_id_t should be used instead. It fixes a potential (but
not enabled) use-after-free if a es_out_id_t was passed to the timeshift
thread.
src/input/es_out.c
src/input/es_out.h
src/input/es_out_timeshift.c
src/input/input.c