Protection against early RTCP packets.
authorGöran Jönsson <goranjn@axis.com>
Mon, 5 Jul 2021 09:54:18 +0000 (11:54 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 5 Jul 2021 10:41:43 +0000 (10:41 +0000)
commit43572a8943497d70f40d083de853f8356c38c6e1
tree7a8465eebb3aba8a023bfabc222db0acf8c4c4d9
parentcc5cdab0165e3bdf5f4f748b3ba2a3493d304e70
Protection against early RTCP packets.

When receiving RTCP packets early the funnel is not ready yet and
GST_FLOW_FLUSHING will be returned when pushing data to it's srcpad.
This causes the thread that handle RTCP packets to go to pause mode.
Since this thread is in pause mode there will be no further callbacks to
handle keep-alive for incoming RTCP packets. This will make the session
time out if the client is not using another keep-alive mechanism.

Change-Id: Idb29db05f59c06423fa693a2aeeacbe3a1883fc5
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/211>
gst/rtsp-server/rtsp-media.c
gst/rtsp-server/rtsp-stream.c
gst/rtsp-server/rtsp-stream.h
gst/rtsp-sink/gstrtspclientsink.c