mpegtsmux: specify in template caps we only take raw/adts AAC format
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 2 Feb 2012 11:27:33 +0000 (11:27 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 2 Feb 2012 12:37:02 +0000 (12:37 +0000)
This appears to be what this element supports.

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

gst/mpegtsmux/mpegtsmux.c

index bab4a87..9eede81 100644 (file)
@@ -121,7 +121,9 @@ static GstStaticPadTemplate mpegtsmux_sink_factory =
         "video/x-dirac;"
         "video/x-h264,stream-format=(string)byte-stream;"
         "audio/mpeg, "
-        "mpegversion = (int) { 1, 2, 4 };"
+        "mpegversion = (int) { 1, 2 };"
+        "audio/mpeg, "
+        "mpegversion = (int) 4, stream-format = (string) { raw, adts };"
         "audio/x-lpcm, "
         "width = (int) { 16, 20, 24 }, "
         "rate = (int) { 48000, 96000 }, "