sctpdec: fix stream reset (src pad removal) if no data is ever received
authorMatthew Waters <matthew@centricular.com>
Thu, 10 Nov 2022 03:22:30 +0000 (14:22 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 11 Nov 2022 10:13:27 +0000 (10:13 +0000)
commita34e380e2ed6ae5d35611169a74c0deb61be4739
tree52cced2a79cbbc9ebcfe2456f6561f9c22db1aa1
parentb010f00d3612a26913e8e6434af1c53925c0c952
sctpdec: fix stream reset (src pad removal) if no data is ever received

If we don't receive any data from usrsctp, then there will be no src pad
for the stream id and the stream reset will fail to remove the relevant
src pad.  Workaround by first attempting to add the relevant src pad, then
almost immediately removing it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3381>
subprojects/gst-plugins-bad/ext/sctp/gstsctpdec.c