mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
Revert "rtsp-sdp: Parse framerate caps field and set SDP attribute"
This reverts commit d6a4dee036
.
We already have a way to place extra attributes in the SDP, just make a string
property in the payloader with a- or x- prefix.
This commit is contained in:
parent
cfdf2e6db5
commit
2a0aaa1019
1 changed files with 0 additions and 13 deletions
|
@ -101,7 +101,6 @@ gst_rtsp_sdp_from_media (GstSDPMessage * sdp, GstSDPInfo * info,
|
|||
GString *fmtp;
|
||||
GstCaps *caps;
|
||||
gint width, height;
|
||||
gint num = 0, denom = 1;
|
||||
|
||||
stream = gst_rtsp_media_get_stream (media, i);
|
||||
caps = gst_rtsp_stream_get_caps (stream);
|
||||
|
@ -164,16 +163,6 @@ gst_rtsp_sdp_from_media (GstSDPMessage * sdp, GstSDPInfo * info,
|
|||
g_free (tmp);
|
||||
}
|
||||
|
||||
/* create framerate SDP attribute if frame is not zero */
|
||||
if (gst_structure_get_fraction (s, "framerate", &num, &denom) && num > 0) {
|
||||
gdouble rate;
|
||||
gchar framerate [G_ASCII_DTOSTR_BUF_SIZE];
|
||||
|
||||
gst_util_fraction_to_double (num, denom, &rate);
|
||||
g_ascii_formatd (framerate, sizeof (framerate), " %.17g", rate);
|
||||
gst_sdp_media_add_attribute (smedia, "framerate", framerate);
|
||||
}
|
||||
|
||||
/* the config uri */
|
||||
tmp = g_strdup_printf ("stream=%d", i);
|
||||
gst_sdp_media_add_attribute (smedia, "control", tmp);
|
||||
|
@ -210,8 +199,6 @@ gst_rtsp_sdp_from_media (GstSDPMessage * sdp, GstSDPInfo * info,
|
|||
continue;
|
||||
if (!strcmp (fname, "height"))
|
||||
continue;
|
||||
if (!strcmp (fname, "framerate"))
|
||||
continue;
|
||||
|
||||
if (g_str_has_prefix (fname, "a-")) {
|
||||
/* attribute */
|
||||
|
|
Loading…
Reference in a new issue