Skip to content

rtspsrc: clip output segment on accurate seeks

The output segment is only used in ONVIF mode.

The previous behaviour was to output a segment computed from the Range response sent by the server.

In ONVIF mode, servers will start serving from the appropriate synchronization point (keyframe), and the Range in response will start at that position.

This means rtspsrc can now perform truly accurate seeks in that mode, by clipping the output segment to the values requested in the seek. The decoder will then discard out of segment buffers and playback will start without artefacts at the exact requested position, similar to the behaviour of a demuxer when an accurate seek is requested.

Merge request reports