summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Esemplare <mesempla@kablab.com>2013-02-01 17:55:33 -0800
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2013-02-03 15:35:59 +0000
commit83adc3740e2985368980cb58a46c3ab28cc20264 (patch)
tree0e9833b908d474611501ad1b7aa5e156b8570a78
parentf67cb58b5e67db957eaee25302e0e2465df2448d (diff)
rtpmp2tdepay: fix caps for compatibility with spec and rtpmp2tpay from 1.0
The encoding name is supposed to be MP2T according to RFC 3551 5.7, not MP2T-ES. The payloader in 1.0 was changed to produce that as per the spec, so let's accept the proper encoding-name in addition to the wrong one as well. https://bugzilla.gnome.org/show_bug.cgi?id=693043
-rw-r--r--gst/rtp/gstrtpmp2tdepay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtp/gstrtpmp2tdepay.c b/gst/rtp/gstrtpmp2tdepay.c
index 1cef95b90..eaef3ee15 100644
--- a/gst/rtp/gstrtpmp2tdepay.c
+++ b/gst/rtp/gstrtpmp2tdepay.c
@@ -56,7 +56,8 @@ static GstStaticPadTemplate gst_rtp_mp2t_depay_sink_template =
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
- "clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"MP2T-ES\";"
+ "clock-rate = (int) [1, MAX ], "
+ "encoding-name = (string) { MP2T-ES, MP2T }; "
/* All optional parameters
*
* "profile-level-id=[1,MAX]"