• Edward Hervey's avatar
    videodecoder: Avoid pushing buffers before segment start · d34aaf9e
    Edward Hervey authored
    In the case where the stream doesn't have a framerate set and the frames
    don't have a duration set, we still want to use the clipping path to
    make sure we don't push buffers outside of the segment.
    
    The problem was the previous iteration was setting a duration of 2s, which
    meant that any buffer which was less than 2s before the segment start would
    end up getting pushed.
    
    Instead, use a saner 40ms (25fps single frame duration) to figure out whether
    the frame could be within the segment or not
    d34aaf9e
gstvideodecoder.c 132 KB