Skip to content
  • Sebastian Dröge's avatar
    videodecoder: Try to be smarter when clipping buffers without duration/framerate to the segment · 21b57412
    Sebastian Dröge authored
    2 second frame duration is rather unlikely... but if we don't clip
    away buffers that far before the segment we can cause the pipeline to
    lockup. This can happen if audio is properly clipped, and thus the
    audio sink does not preroll yet but the video sink prerolls because
    we already outputted a buffer here... and then queues run full.
    
    In the worst case we will clip one buffer too many here now if no
    framerate is given, no buffer duration is given and the actual
    framerate is less than 0.5fps.
    
    Fixes seeking on HLS/DASH streams, when seeking into the middle of
    fragments and having no framerate/buffer duration.
    21b57412