mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
Revert "rtsp-sdp: Parse width/height from caps and set SDP attribute"
This reverts commit 5fd034ff1a
.
We already have a way to place extra attributes in the SDP by using a string
property with prefix x- or a- in the caps.
This commit is contained in:
parent
2a0aaa1019
commit
17b07d1c0e
1 changed files with 0 additions and 17 deletions
|
@ -100,7 +100,6 @@ gst_rtsp_sdp_from_media (GstSDPMessage * sdp, GstSDPInfo * info,
|
||||||
gboolean first;
|
gboolean first;
|
||||||
GString *fmtp;
|
GString *fmtp;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
gint width, height;
|
|
||||||
|
|
||||||
stream = gst_rtsp_media_get_stream (media, i);
|
stream = gst_rtsp_media_get_stream (media, i);
|
||||||
caps = gst_rtsp_stream_get_caps (stream);
|
caps = gst_rtsp_stream_get_caps (stream);
|
||||||
|
@ -151,18 +150,6 @@ gst_rtsp_sdp_from_media (GstSDPMessage * sdp, GstSDPInfo * info,
|
||||||
g_free (tmp);
|
g_free (tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create framesize SDP attribute */
|
|
||||||
if (gst_structure_get_int (s, "width", &width) && width > 0 &&
|
|
||||||
gst_structure_get_int (s, "height", &height) && height > 0) {
|
|
||||||
tmp = g_strdup_printf ("%d %d-%d", caps_pt, width, height);
|
|
||||||
gst_sdp_media_add_attribute (smedia, "framesize", tmp);
|
|
||||||
g_free (tmp);
|
|
||||||
|
|
||||||
tmp = g_strdup_printf (" %d,%d", width, height);
|
|
||||||
gst_sdp_media_add_attribute (smedia, "x-dimensions", tmp);
|
|
||||||
g_free (tmp);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* the config uri */
|
/* the config uri */
|
||||||
tmp = g_strdup_printf ("stream=%d", i);
|
tmp = g_strdup_printf ("stream=%d", i);
|
||||||
gst_sdp_media_add_attribute (smedia, "control", tmp);
|
gst_sdp_media_add_attribute (smedia, "control", tmp);
|
||||||
|
@ -195,10 +182,6 @@ gst_rtsp_sdp_from_media (GstSDPMessage * sdp, GstSDPInfo * info,
|
||||||
continue;
|
continue;
|
||||||
if (!strcmp (fname, "seqnum-base"))
|
if (!strcmp (fname, "seqnum-base"))
|
||||||
continue;
|
continue;
|
||||||
if (!strcmp (fname, "width"))
|
|
||||||
continue;
|
|
||||||
if (!strcmp (fname, "height"))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (g_str_has_prefix (fname, "a-")) {
|
if (g_str_has_prefix (fname, "a-")) {
|
||||||
/* attribute */
|
/* attribute */
|
||||||
|
|
Loading…
Reference in a new issue