Skip to content

smoothstreaming: clear live adapter on seek

Hosang Lee requested to merge Hosang/gst-plugins-bad:mss-clear-adapter into master

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.

Edited by Sebastian Dröge

Merge request reports