mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
c51720c929
commit
921e025160
2 changed files with 19 additions and 10 deletions
|
@ -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>
|
2004-01-30 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* gst/mpegaudioparse/gstmpegaudioparse.c:
|
* gst/mpegaudioparse/gstmpegaudioparse.c:
|
||||||
|
|
|
@ -54,8 +54,8 @@ GST_STATIC_PAD_TEMPLATE (
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("video/mpeg, "
|
GST_STATIC_CAPS ("video/mpeg, "
|
||||||
"mpegversion = (int) [ 1, 2], "
|
"mpegversion = (int) { 1, 2 }, "
|
||||||
"systemstream = (boolean) TRUE"
|
"systemstream = (boolean) TRUE"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -64,8 +64,9 @@ GST_STATIC_PAD_TEMPLATE (
|
||||||
"audio_%02d",
|
"audio_%02d",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_SOMETIMES,
|
GST_PAD_SOMETIMES,
|
||||||
GST_STATIC_CAPS ( "audio/mpeg, "
|
GST_STATIC_CAPS ("audio/mpeg, "
|
||||||
"mpegversion = (int) 1"
|
"mpegversion = (int) 1, "
|
||||||
|
"layer = (int) { 1, 2 }"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -74,10 +75,9 @@ GST_STATIC_PAD_TEMPLATE (
|
||||||
"video_%02d",
|
"video_%02d",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_SOMETIMES,
|
GST_PAD_SOMETIMES,
|
||||||
GST_STATIC_CAPS (
|
GST_STATIC_CAPS ("video/mpeg, "
|
||||||
"video/mpeg, "
|
"mpegversion = (int) { 1, 2 }, "
|
||||||
"mpegversion = (int) { 1, 2 }, "
|
"systemstream = (boolean) FALSE"
|
||||||
"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_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_type_function (*outpad, gst_mpeg_parse_get_src_query_types);
|
||||||
gst_pad_set_query_function (*outpad, gst_mpeg_parse_handle_src_query);
|
gst_pad_set_query_function (*outpad, gst_mpeg_parse_handle_src_query);
|
||||||
gst_pad_use_explicit_caps (*outpad);
|
if (caps && gst_caps_is_fixed (caps))
|
||||||
|
gst_pad_use_explicit_caps (*outpad);
|
||||||
gst_element_add_pad (GST_ELEMENT (mpeg_demux), (*outpad));
|
gst_element_add_pad (GST_ELEMENT (mpeg_demux), (*outpad));
|
||||||
|
|
||||||
gst_pad_set_explicit_caps (*outpad, caps);
|
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);
|
gst_pad_set_element_private (*outpad, *outstream);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue