summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2014-03-15 13:33:56 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-04-02 17:52:41 -0400
commit896fc208066c0c314d8b9043a4d2f7ffbc8b657e (patch)
tree09cfeb6beb76bfe7e4a5701e8fb69f59508a76d1
parentf160625ea674538be81d41c9286c7dd437c7a034 (diff)
rtpjpegpay/-depay: Remove incorrectly introduced framesize SDP attribute
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726415
-rw-r--r--gst/rtp/gstrtpjpegdepay.c11
-rw-r--r--gst/rtp/gstrtpjpegpay.c14
2 files changed, 4 insertions, 21 deletions
diff --git a/gst/rtp/gstrtpjpegdepay.c b/gst/rtp/gstrtpjpegdepay.c
index 5463283e7..57055e863 100644
--- a/gst/rtp/gstrtpjpegdepay.c
+++ b/gst/rtp/gstrtpjpegdepay.c
@@ -50,7 +50,6 @@ static GstStaticPadTemplate gst_rtp_jpeg_depay_sink_template =
/*
* "a-framerate = (string) 0.00, "
* "x-framerate = (string) 0.00, "
- * "a-framesize = (string) 1234-1234, "
* "x-dimensions = (string) \"1234,1234\", "
*/
"application/x-rtp, "
@@ -61,7 +60,6 @@ static GstStaticPadTemplate gst_rtp_jpeg_depay_sink_template =
/*
* "a-framerate = (string) 0.00, "
* "x-framerate = (string) 0.00, "
- * "a-framesize = (string) 1234-1234, "
* "x-dimensions = (string) \"1234,1234\""
*/
)
@@ -458,15 +456,6 @@ gst_rtp_jpeg_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
}
}
- if ((media_attr = gst_structure_get_string (structure, "a-framesize"))) {
- gint w, h;
-
- if (sscanf (media_attr, "%d-%d", &w, &h) == 2) {
- rtpjpegdepay->media_width = w;
- rtpjpegdepay->media_height = h;
- }
- }
-
/* try to get a framerate */
media_attr = gst_structure_get_string (structure, "a-framerate");
if (!media_attr)
diff --git a/gst/rtp/gstrtpjpegpay.c b/gst/rtp/gstrtpjpegpay.c
index 3e820a088..8c3a6d493 100644
--- a/gst/rtp/gstrtpjpegpay.c
+++ b/gst/rtp/gstrtpjpegpay.c
@@ -296,7 +296,6 @@ gst_rtp_jpeg_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps)
gint num = 0, denom;
gchar *rate = NULL;
gchar *dim = NULL;
- gchar *size;
pay = GST_RTP_JPEG_PAY (basepayload);
@@ -331,8 +330,6 @@ gst_rtp_jpeg_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps)
rate = g_strdup_printf ("%f", framerate);
}
- size = g_strdup_printf ("%d-%d", width, height);
-
if (pay->width == 0) {
GST_DEBUG_OBJECT (pay,
"width or height are greater than 2040, adding x-dimensions to caps");
@@ -341,24 +338,21 @@ gst_rtp_jpeg_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps)
if (rate != NULL && dim != NULL) {
res = gst_rtp_base_payload_set_outcaps (basepayload, "a-framerate",
- G_TYPE_STRING, rate, "a-framesize", G_TYPE_STRING, size,
- "x-dimensions", G_TYPE_STRING, dim, NULL);
+ G_TYPE_STRING, rate, "x-dimensions", G_TYPE_STRING, dim, NULL);
} else if (rate != NULL && dim == NULL) {
res = gst_rtp_base_payload_set_outcaps (basepayload, "a-framerate",
- G_TYPE_STRING, rate, "a-framesize", G_TYPE_STRING, size, NULL);
+ G_TYPE_STRING, rate, NULL);
} else if (rate == NULL && dim != NULL) {
res = gst_rtp_base_payload_set_outcaps (basepayload, "x-dimensions",
- G_TYPE_STRING, dim, "a-framesize", G_TYPE_STRING, size, NULL);
+ G_TYPE_STRING, dim, NULL);
} else {
- res = gst_rtp_base_payload_set_outcaps (basepayload, "a-framesize",
- G_TYPE_STRING, size, NULL);
+ res = gst_rtp_base_payload_set_outcaps (basepayload, NULL);
}
if (dim != NULL)
g_free (dim);
if (rate != NULL)
g_free (rate);
- g_free (size);
return res;