• Rémi Denis-Courmont's avatar
    decoder: remove invalid call, fix races · 16e30392
    Rémi Denis-Courmont authored
    Calling input_DecoderStopWait() from the decoder thread makes no sense
    as it signals a condition variable that only the decoder thread itself
    would ever wait on.
    
    More importantly, the call breaks assumptions made by the input thread.
    For instance, input_DecoderDecode() assumes p_owner->b_waiting is only
    changed by the decoder owner (i.e. input) thread.
    16e30392
decoder.c 64.1 KB