mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-31 22:49:02 +00:00
audioparsers: Improve src template caps
Remove the parsed/framed fields and add all fields to the template caps that always exist.
This commit is contained in:
parent
625e7a6143
commit
786d35f53f
5 changed files with 14 additions and 13 deletions
|
@ -57,8 +57,7 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/mpeg, "
|
||||
"framed = (boolean) false, " "mpegversion = (int) { 2, 4 };"));
|
||||
GST_STATIC_CAPS ("audio/mpeg, mpegversion = (int) { 2, 4 };"));
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (aacparse_debug);
|
||||
#define GST_CAT_DEFAULT aacparse_debug
|
||||
|
|
|
@ -144,16 +144,16 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-ac3, framed = (boolean) true, "
|
||||
" channels = (int) [ 1, 6 ], rate = (int) [ 32000, 48000 ]; "
|
||||
" channels = (int) [ 1, 6 ], rate = (int) [ 32000, 48000 ], "
|
||||
" alignment = (string) { iec61937, frame}; "
|
||||
"audio/x-eac3, framed = (boolean) true, "
|
||||
" channels = (int) [ 1, 6 ], rate = (int) [ 32000, 48000 ] "));
|
||||
" channels = (int) [ 1, 6 ], rate = (int) [ 32000, 48000 ], "
|
||||
" alignment = (string) { iec61937, frame}; "));
|
||||
|
||||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-ac3, framed = (boolean) false; "
|
||||
"audio/x-eac3, framed = (boolean) false; "
|
||||
"audio/ac3, framed = (boolean) false "));
|
||||
GST_STATIC_CAPS ("audio/x-ac3; " "audio/x-eac3; " "audio/ac3"));
|
||||
|
||||
static void gst_ac3_parse_finalize (GObject * object);
|
||||
|
||||
|
|
|
@ -62,12 +62,13 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
" channels = (int) [ 1, 8 ],"
|
||||
" rate = (int) [ 8000, 192000 ],"
|
||||
" depth = (int) { 14, 16 },"
|
||||
" endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }"));
|
||||
" endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, "
|
||||
" block-size = (int) [ 1, MAX], " " frame-size = (int) [ 1, MAX]"));
|
||||
|
||||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-dts, framed = (boolean) false"));
|
||||
GST_STATIC_CAPS ("audio/x-dts"));
|
||||
|
||||
static void gst_dca_parse_finalize (GObject * object);
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-flac, framed = (boolean) false")
|
||||
GST_STATIC_CAPS ("audio/x-flac")
|
||||
);
|
||||
|
||||
static void gst_flac_parse_finalize (GObject * object);
|
||||
|
|
|
@ -76,14 +76,15 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("audio/mpeg, "
|
||||
"mpegversion = (int) 1, "
|
||||
"layer = (int) [ 1, 3 ], "
|
||||
"rate = (int) [ 8000, 48000 ], channels = (int) [ 1, 2 ],"
|
||||
"parsed=(boolean) true")
|
||||
"mpegaudioversion = (int) [ 1, 3], "
|
||||
"rate = (int) [ 8000, 48000 ], "
|
||||
"channels = (int) [ 1, 2 ], " "parsed=(boolean) true")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/mpeg, mpegversion = (int) 1, parsed=(boolean)false")
|
||||
GST_STATIC_CAPS ("audio/mpeg, mpegversion = (int) 1")
|
||||
);
|
||||
|
||||
static void gst_mpeg_audio_parse_finalize (GObject * object);
|
||||
|
|
Loading…
Reference in a new issue