Skip to content
  • Thomas Guillem's avatar
    decoder: don't flush if already flushed · 69c4ec60
    Thomas Guillem authored and Rémi Denis-Courmont's avatar Rémi Denis-Courmont committed
    
    
    This commit fixes the following assert in the DecoderThread function:
    "assert( vlc_fifo_IsEmpty( p_owner->p_fifo) );"
    
    Indeed, if input_DecoderFlush is called again (just after), p_owner->flushed
    will be true and the input won't wait for the DecoderThread. As a consequence,
    the input will send blocks while the DecoderThread is flushing, hence the
    assert.
    
    Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
    69c4ec60