mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
rtsp-sdp: add payload type to the sdp framesize attribute
The sdp framesize attribute is desribed in RFC6064. It is specified for payloading of H263 and has the following form a=framesize:<payload type> <width>-<height>. The <width>-<height> part should be added to the caps in a payloader and the <payload type> should be added by the rtsp-server. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725334
This commit is contained in:
parent
d92ff17026
commit
9dadaed2fd
1 changed files with 10 additions and 0 deletions
|
@ -345,6 +345,16 @@ make_media (GstSDPMessage * sdp, GstSDPInfo * info, GstRTSPMedia * media,
|
||||||
if (g_str_has_prefix (fname, "x-gst-rtsp-server-rtx-time"))
|
if (g_str_has_prefix (fname, "x-gst-rtsp-server-rtx-time"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (!strcmp (fname, "a-framesize")) {
|
||||||
|
/* a-framesize attribute */
|
||||||
|
if ((fval = gst_structure_get_string (s, fname))) {
|
||||||
|
tmp = g_strdup_printf ("%d %s", caps_pt, fval);
|
||||||
|
gst_sdp_media_add_attribute (smedia, fname + 2, tmp);
|
||||||
|
g_free (tmp);
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (g_str_has_prefix (fname, "a-")) {
|
if (g_str_has_prefix (fname, "a-")) {
|
||||||
/* attribute */
|
/* attribute */
|
||||||
if ((fval = gst_structure_get_string (s, fname)))
|
if ((fval = gst_structure_get_string (s, fname)))
|
||||||
|
|
Loading…
Reference in a new issue