summaryrefslogtreecommitdiffstats
path: root/gst/mpegtsmux
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-09-01 17:47:03 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-09-01 17:47:03 +0000
commitb24d38315f03bdc84700e4da4bbd62563c9c0f1f (patch)
tree1c5e3aa2918ed1c6731bb9d06e285207f6d4110c /gst/mpegtsmux
parentb76d9f5bcd45db460c314c18ffea3b7415dac3b4 (diff)
downloadgst-plugins-bad-b24d38315f03bdc84700e4da4bbd62563c9c0f1f.tar.gz
gst-plugins-bad-b24d38315f03bdc84700e4da4bbd62563c9c0f1f.tar.bz2
gst-plugins-bad-b24d38315f03bdc84700e4da4bbd62563c9c0f1f.zip
gst/mpegtsmux/mpegtsmux.c: Add support for muxing MPEG4 video.
Original commit message from CVS: * gst/mpegtsmux/mpegtsmux.c: (mpegtsmux_create_stream): Add support for muxing MPEG4 video.
Diffstat (limited to 'gst/mpegtsmux')
-rw-r--r--gst/mpegtsmux/mpegtsmux.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c
index 8013b51a..9e5843e8 100644
--- a/gst/mpegtsmux/mpegtsmux.c
+++ b/gst/mpegtsmux/mpegtsmux.c
@@ -103,7 +103,7 @@ static GstStaticPadTemplate mpegtsmux_sink_factory =
GST_STATIC_PAD_TEMPLATE ("sink_%d",
GST_PAD_SINK,
GST_PAD_REQUEST,
- GST_STATIC_CAPS ("video/mpeg, mpegversion=(int) { 1, 2 }, "
+ GST_STATIC_CAPS ("video/mpeg, mpegversion=(int) { 1, 2, 4 }, "
"systemstream = (boolean) false; "
"video/x-dirac;"
"video/x-h264;" "audio/mpeg, mpegversion = (int) { 1, 2, 4 }")
@@ -361,12 +361,18 @@ mpegtsmux_create_stream (MpegTsMux * mux, MpegTsPadData * ts_data, GstPad * pad)
ts_data->pid);
ts_data->stream = tsmux_create_stream (mux->tsmux, TSMUX_ST_VIDEO_MPEG1,
ts_data->pid);
- } else {
+ } else if (mpegversion == 2) {
GST_DEBUG_OBJECT (pad,
"Creating MPEG Video, version 2 stream with PID 0x%04x",
ts_data->pid);
ts_data->stream = tsmux_create_stream (mux->tsmux, TSMUX_ST_VIDEO_MPEG2,
ts_data->pid);
+ } else {
+ GST_DEBUG_OBJECT (pad,
+ "Creating MPEG Video, version 4 stream with PID 0x%04x",
+ ts_data->pid);
+ ts_data->stream = tsmux_create_stream (mux->tsmux, TSMUX_ST_VIDEO_MPEG4,
+ ts_data->pid);
}
}