]> git.sesse.net Git - vlc/commit
Input: attach before any variable access so that inheritance works
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 18 Jan 2010 18:06:27 +0000 (20:06 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 18 Jan 2010 18:12:45 +0000 (20:12 +0200)
commitb09cb1971566c92cbbb52ce672070ddcd3543f07
tree5a5101b712d5e5fafe47a693a9abbba48c4a7f0c
parent4d6f12afef2e602fa46faf9568125bc0d160f755
Input: attach before any variable access so that inheritance works

So far, the input was attached after it inherited quite a bunch of
variables. This did not quite work. The problem lies in the dual use
of object attachment: variables inheritance and tree search.

Nowadays, the input object should not be looked for before it is
initialized. Only children objects use vlc_object_find anymore, and
they can only exist while the input is fully initialized. Other code
paths use playlist_CurrentInput() or such, which only ever return an
already initialized input (from input.c:Create()).

(N.B.: I wonder if there aren't similar issues in VOUT and AOUT)
src/input/input.c