rtpst2022-1-fecenc: Drain column packets on EOS
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 11 Aug 2022 20:50:40 +0000 (02:20 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 12 Aug 2022 12:59:19 +0000 (12:59 +0000)
commitd8c4ebccabb2c828727099a97c4c788128fab1ef
tree446f1ae33c3c492f0435c98be64c2df9372dabb0
parentc668f6fc227aaa272b49878d0a15e19d3ffc547e
rtpst2022-1-fecenc: Drain column packets on EOS

Otherwise we won't send the protection packets for the last few
packets when a stream ends.

Also send EOS on the FEC src row pad immediately, and on the FEC src
column pad after draining is complete. This makes it so that the FEC
src pads on rtpbin behave the same way as the RTCP src pads on rtpbin
when EOS is received on the send_rtp_sink pad.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2863>
subprojects/gst-plugins-good/gst/rtpmanager/gstrtpst2022-1-fecenc.c