mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
sdp/caps: support translating transport-cc rtcp-fb from caps to sdp attributes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1130>
This commit is contained in:
parent
7725c90d5c
commit
1ca747436f
1 changed files with 10 additions and 1 deletions
|
@ -3767,7 +3767,7 @@ gst_sdp_media_set_media_from_caps (const GstCaps * caps, GstSDPMedia * media)
|
|||
gchar *tmp;
|
||||
gint caps_pt, caps_rate;
|
||||
guint n_fields, j;
|
||||
gboolean first, nack, nack_pli, ccm_fir;
|
||||
gboolean first, nack, nack_pli, ccm_fir, transport_cc;
|
||||
GString *fmtp;
|
||||
GstStructure *s;
|
||||
|
||||
|
@ -3833,6 +3833,15 @@ gst_sdp_media_set_media_from_caps (const GstCaps * caps, GstSDPMedia * media)
|
|||
}
|
||||
}
|
||||
|
||||
if (gst_structure_get_boolean (s, "rtcp-fb-transport-cc", &transport_cc)) {
|
||||
if (transport_cc) {
|
||||
tmp = g_strdup_printf ("%d transport-cc", caps_pt);
|
||||
gst_sdp_media_add_attribute (media, "rtcp-fb", tmp);
|
||||
g_free (tmp);
|
||||
GST_DEBUG ("adding rtcp-fb-transport-cc to pt=%d", caps_pt);
|
||||
}
|
||||
}
|
||||
|
||||
/* collect all other properties and add them to fmtp, extmap or attributes */
|
||||
fmtp = g_string_new ("");
|
||||
g_string_append_printf (fmtp, "%d ", caps_pt);
|
||||
|
|
Loading…
Reference in a new issue