Skip to content
  • Rémi Denis-Courmont's avatar
    Input: attach before any variable access so that inheritance works · b09cb197
    Rémi Denis-Courmont authored
    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)
    b09cb197