srtp: Added support for BYE packet
authorZeid Bekli <zeidb@axis.com>
Tue, 7 Apr 2020 23:22:07 +0000 (01:22 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 9 Apr 2020 15:11:19 +0000 (15:11 +0000)
SRTCP can't get SSRC from BYE packet, this will make srtpdec element
to drop the package. Adding support to get the SSRC from BYE packets.

ext/srtp/gstsrtp.c

index 42b0ecf2f114d7061bb687f415ce949e7e8d9b16..b1ddd67549a14a8dc85626fb988f7ffd384de46b 100644 (file)
@@ -196,6 +196,10 @@ rtcp_buffer_get_ssrc (GstBuffer * buf, guint32 * ssrc)
           *ssrc = gst_rtcp_packet_app_get_ssrc (&packet);
           ret = TRUE;
           break;
+        case GST_RTCP_TYPE_BYE:
+          *ssrc = gst_rtcp_packet_bye_get_nth_ssrc (&packet, 0);
+          ret = TRUE;
+          break;
         default:
           break;
       }