ristsink: Only accept RTCP APP packets with subtype==0

This commit is contained in:
Olivier Crête 2019-07-26 16:17:59 -04:00 committed by Olivier Crête
parent 324202d70b
commit 6c7e7580fb

View file

@ -296,6 +296,7 @@ on_app_rtcp (GObject * session, guint32 subtype, guint32 ssrc,
const gchar * name, GstBuffer * data, GstElement * rtpsession)
{
if (g_str_equal (name, "RIST")) {
if (subtype == 0) {
GstEvent *event;
GstPad *send_rtp_sink;
GstMapInfo map;
@ -328,6 +329,7 @@ on_app_rtcp (GObject * session, guint32 subtype, guint32 ssrc,
}
}
}
}
static void
gst_rist_sink_on_new_sender_ssrc (GstRistSink * sink, guint session_id,