Skip to content
  • Thiago Santos's avatar
    videodecoder: use new segment earlier for reverse playback · 5b8e1925
    Thiago Santos authored
    For reverse playback, the segment event will only be pushed when
    the first buffer is actually pushed. But for decoding frames and storing
    those into the list to be pushed the output_segment.rate value is used
    to determine if it is forward or reverse playback.
    
    In case a previous segment event (or none) is in use it will mistakenly
    think it is doing forward playback and push the buffers immediatelly and
    try to clip buffers based on an old segment (or an uninitialized one, leading
    to an assertion)
    
    This patch fixes this by copying the segment earlier if on reverse playback
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721666
    5b8e1925