input: move vout start/stop handling in resource
commit8d423ad7f6a6091802430726a9cee10a86ec7c8b
authorThomas Guillem <thomas@gllm.fr>
Tue, 30 Jun 2020 14:41:38 +0000 (30 16:41 +0200)
committerThomas Guillem <thomas@gllm.fr>
Mon, 6 Jul 2020 06:27:11 +0000 (6 08:27 +0200)
treeae693f6e38757c57775089989b4f0e406ab1d6de
parent71a423f2d4f1a360893cb2303913d35f253450e3
input: move vout start/stop handling in resource

The start state is now know by the input resource and protected with its lock.
Move vout_StopDisplay() and vout_ChangeSource() to input/resource.c since the
execution of these functions depend on the start state.
src/input/decoder.c
src/input/resource.c
src/input/resource.h