rtpmp2tdepay: accept mislabelled streams from GStreamer 0.10 as well
authorJens Georg <mail@jensge.org>
Sat, 15 Jun 2013 10:29:31 +0000 (12:29 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 17 Jun 2013 14:39:17 +0000 (15:39 +0100)
The mp2t payloader in 0.10 mislabelled the streams as MP2T-ES
instead of MP2T, so accept that as well for compatibility reasons.

https://bugzilla.gnome.org/show_bug.cgi?id=702457

gst/rtp/gstrtpmp2tdepay.c

index 06843f6..345d906 100644 (file)
@@ -55,7 +55,8 @@ static GstStaticPadTemplate gst_rtp_mp2t_depay_sink_template =
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("application/x-rtp, "
         "media = (string) \"video\", "
-        "clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"MP2T\";"
+        "clock-rate = (int) [1, MAX ], "
+        "encoding-name = (string) { MP2T, MP2T-ES } ;"
         /* All optional parameters
          *
          * "profile-level-id=[1,MAX]"