gst/mpegstream/gstmpegdemux.c: Fix audio.

Original commit message from CVS:
2004-01-30  Ronald Bultje  <rbultje@ronald.bitfreak.net>

* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_parse_syshead):
Fix audio.
This commit is contained in:
Ronald S. Bultje 2004-01-30 14:39:37 +00:00
parent c51720c929
commit 921e025160
2 changed files with 19 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2004-01-30 Ronald Bultje <rbultje@ronald.bitfreak.net>
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_parse_syshead):
Fix audio.
2004-01-30 Ronald Bultje <rbultje@ronald.bitfreak.net>
* gst/mpegaudioparse/gstmpegaudioparse.c:

View file

@ -54,7 +54,7 @@ GST_STATIC_PAD_TEMPLATE (
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/mpeg, "
"mpegversion = (int) [ 1, 2], "
"mpegversion = (int) { 1, 2 }, "
"systemstream = (boolean) TRUE"
)
);
@ -65,7 +65,8 @@ GST_STATIC_PAD_TEMPLATE (
GST_PAD_SRC,
GST_PAD_SOMETIMES,
GST_STATIC_CAPS ("audio/mpeg, "
"mpegversion = (int) 1"
"mpegversion = (int) 1, "
"layer = (int) { 1, 2 }"
)
);
@ -74,8 +75,7 @@ GST_STATIC_PAD_TEMPLATE (
"video_%02d",
GST_PAD_SRC,
GST_PAD_SOMETIMES,
GST_STATIC_CAPS (
"video/mpeg, "
GST_STATIC_CAPS ("video/mpeg, "
"mpegversion = (int) { 1, 2 }, "
"systemstream = (boolean) FALSE"
)
@ -465,10 +465,14 @@ gst_mpeg_demux_parse_syshead (GstMPEGParse *mpeg_parse, GstBuffer *buffer)
gst_pad_set_event_function (*outpad, gst_mpeg_demux_handle_src_event);
gst_pad_set_query_type_function (*outpad, gst_mpeg_parse_get_src_query_types);
gst_pad_set_query_function (*outpad, gst_mpeg_parse_handle_src_query);
if (caps && gst_caps_is_fixed (caps))
gst_pad_use_explicit_caps (*outpad);
gst_element_add_pad (GST_ELEMENT (mpeg_demux), (*outpad));
if (caps && gst_caps_is_fixed (caps))
gst_pad_set_explicit_caps (*outpad, caps);
else if (caps)
gst_caps_free (caps);
gst_pad_set_element_private (*outpad, *outstream);