summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Svensson <linussn@axis.com>2014-02-26 22:34:06 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-03-09 09:26:38 +0100
commit9dadaed2fd598a0abe146d042177086fdbeaed4a (patch)
tree941835c01ddde6c0942ea9f08d109fd263247a7a
parentd92ff17026598ce6c58fb16f7a475c18f34b5b54 (diff)
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
-rw-r--r--gst/rtsp-server/rtsp-sdp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-sdp.c b/gst/rtsp-server/rtsp-sdp.c
index dfc54be..421525d 100644
--- a/gst/rtsp-server/rtsp-sdp.c
+++ b/gst/rtsp-server/rtsp-sdp.c
@@ -345,6 +345,16 @@ make_media (GstSDPMessage * sdp, GstSDPInfo * info, GstRTSPMedia * media,
if (g_str_has_prefix (fname, "x-gst-rtsp-server-rtx-time"))
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-")) {
/* attribute */
if ((fval = gst_structure_get_string (s, fname)))