rtspsrc: De-dup seek event seqnums to avoid multiple seeks
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 9 Apr 2021 21:39:44 +0000 (03:09 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 12 Apr 2021 03:32:08 +0000 (03:32 +0000)
commit590fbb4ddddf543ff12cc75ae7201a6485a9899e
tree2310cb0474f8c5f4a2416493e6594db10fba2a50
parent57e4eab72d00677eb60c7bda1feeef833e043038
rtspsrc: De-dup seek event seqnums to avoid multiple seeks

Seek events are sent upstream on each sink, so if we receive multiple
seeks with the same seqnum, we must only perform one seek, not N seeks
where N = the number of sinks in the pipeline connected to rtspsrc.

This is the same thing done by demuxers like qtdemux or matrsokademux.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/938>
gst/rtsp/gstrtspsrc.c