srtp: Added support for BYE packet

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.
This commit is contained in:
Zeid Bekli 2020-04-08 01:22:07 +02:00 committed by GStreamer Merge Bot
parent b4efdeba11
commit 663cd44ef0

View 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;
}