Skip to content
  • Hosang Lee's avatar
    smoothstreaming: clear live adapter on seek · f7a8ece5
    Hosang Lee authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    In live streaming, buffers sent by souphttpsrc are pushed to the live
    adapter. The buffers in the adapter are sent out of mssdemux when it
    is greater than 4096 bytes.
    
    Occasionally, when seeking in live streams, if seek occurs just
    after the last data chunk was received, and if this data chunk is
    smaller than 4096 bytes, it will be kept in the live adapter.
    This remaining data in the live adapter will be erroneously prepended
    to the new data that is downloaded after seek and pushed out.
    When qtdemux receives this data, since it does not start with
    a moof box, it is impossible to demux the fragment, and bogus
    size error will occur.
    
    Clear out the live adapter on seek so that no unnecessary remaining
    data is pushed out together with the new fragment after seeking.
    
    Part-of: <!1345>
    f7a8ece5