mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
audioparsers: Remove dead assignments
This commit is contained in:
parent
5bfc92714e
commit
1e71d31e67
3 changed files with 0 additions and 55 deletions
|
@ -77,8 +77,6 @@ GST_DEBUG_CATEGORY_STATIC (gst_aacparse_debug);
|
|||
|
||||
#define AAC_FRAME_DURATION(parse) (GST_SECOND/parse->frames_per_sec)
|
||||
|
||||
static void gst_aacparse_finalize (GObject * object);
|
||||
|
||||
gboolean gst_aacparse_start (GstBaseParse * parse);
|
||||
gboolean gst_aacparse_stop (GstBaseParse * parse);
|
||||
|
||||
|
@ -148,11 +146,8 @@ gst_aacparse_base_init (gpointer klass)
|
|||
static void
|
||||
gst_aacparse_class_init (GstAacParseClass * klass)
|
||||
{
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GstBaseParseClass *parse_class = GST_BASE_PARSE_CLASS (klass);
|
||||
|
||||
object_class->finalize = gst_aacparse_finalize;
|
||||
|
||||
parse_class->start = GST_DEBUG_FUNCPTR (gst_aacparse_start);
|
||||
parse_class->stop = GST_DEBUG_FUNCPTR (gst_aacparse_stop);
|
||||
parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_aacparse_sink_setcaps);
|
||||
|
@ -177,21 +172,6 @@ gst_aacparse_init (GstAacParse * aacparse, GstAacParseClass * klass)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* gst_aacparse_finalize:
|
||||
* @object:
|
||||
*
|
||||
*/
|
||||
static void
|
||||
gst_aacparse_finalize (GObject * object)
|
||||
{
|
||||
GstAacParse *aacparse;
|
||||
|
||||
aacparse = GST_AACPARSE (object);
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gst_aacparse_set_src_caps:
|
||||
* @aacparse: #GstAacParse.
|
||||
|
@ -716,9 +696,6 @@ gst_aacparse_start (GstBaseParse * parse)
|
|||
gboolean
|
||||
gst_aacparse_stop (GstBaseParse * parse)
|
||||
{
|
||||
GstAacParse *aacparse;
|
||||
|
||||
aacparse = GST_AACPARSE (parse);
|
||||
GST_DEBUG ("stop");
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -74,8 +74,6 @@ static const gint block_size_wb[16] =
|
|||
#define AMR_FRAME_DURATION (GST_SECOND/AMR_FRAMES_PER_SECOND)
|
||||
#define AMR_MIME_HEADER_SIZE 9
|
||||
|
||||
static void gst_amrparse_finalize (GObject * object);
|
||||
|
||||
gboolean gst_amrparse_start (GstBaseParse * parse);
|
||||
gboolean gst_amrparse_stop (GstBaseParse * parse);
|
||||
|
||||
|
@ -126,11 +124,8 @@ gst_amrparse_base_init (gpointer klass)
|
|||
static void
|
||||
gst_amrparse_class_init (GstAmrParseClass * klass)
|
||||
{
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GstBaseParseClass *parse_class = GST_BASE_PARSE_CLASS (klass);
|
||||
|
||||
object_class->finalize = gst_amrparse_finalize;
|
||||
|
||||
parse_class->start = GST_DEBUG_FUNCPTR (gst_amrparse_start);
|
||||
parse_class->stop = GST_DEBUG_FUNCPTR (gst_amrparse_stop);
|
||||
parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_amrparse_sink_setcaps);
|
||||
|
@ -156,21 +151,6 @@ gst_amrparse_init (GstAmrParse * amrparse, GstAmrParseClass * klass)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* gst_amrparse_finalize:
|
||||
* @object:
|
||||
*
|
||||
*/
|
||||
static void
|
||||
gst_amrparse_finalize (GObject * object)
|
||||
{
|
||||
GstAmrParse *amrparse;
|
||||
|
||||
amrparse = GST_AMRPARSE (object);
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gst_amrparse_set_src_caps:
|
||||
* @amrparse: #GstAmrParse.
|
||||
|
@ -352,10 +332,6 @@ gst_amrparse_check_valid_frame (GstBaseParse * parse,
|
|||
GstFlowReturn
|
||||
gst_amrparse_parse_frame (GstBaseParse * parse, GstBuffer * buffer)
|
||||
{
|
||||
GstAmrParse *amrparse;
|
||||
|
||||
amrparse = GST_AMRPARSE (parse);
|
||||
|
||||
gst_buffer_set_caps (buffer, GST_PAD_CAPS (parse->srcpad));
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
|
|
@ -944,9 +944,6 @@ static gboolean
|
|||
gst_base_parse_src_eventfunc (GstBaseParse * parse, GstEvent * event)
|
||||
{
|
||||
gboolean handled = FALSE;
|
||||
GstBaseParseClass *bclass;
|
||||
|
||||
bclass = GST_BASE_PARSE_GET_CLASS (parse);
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_SEEK:
|
||||
|
@ -2728,11 +2725,9 @@ static gboolean
|
|||
gst_base_parse_query (GstPad * pad, GstQuery * query)
|
||||
{
|
||||
GstBaseParse *parse;
|
||||
GstBaseParseClass *klass;
|
||||
gboolean res = FALSE;
|
||||
|
||||
parse = GST_BASE_PARSE (GST_PAD_PARENT (pad));
|
||||
klass = GST_BASE_PARSE_GET_CLASS (parse);
|
||||
|
||||
GST_LOG_OBJECT (parse, "handling query: %" GST_PTR_FORMAT, query);
|
||||
|
||||
|
@ -3107,7 +3102,6 @@ exit:
|
|||
static gboolean
|
||||
gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event)
|
||||
{
|
||||
GstBaseParseClass *klass;
|
||||
gdouble rate;
|
||||
GstFormat format;
|
||||
GstSeekFlags flags;
|
||||
|
@ -3118,8 +3112,6 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event)
|
|||
GstFormat dstformat;
|
||||
GstClockTime start_ts;
|
||||
|
||||
klass = GST_BASE_PARSE_GET_CLASS (parse);
|
||||
|
||||
gst_event_parse_seek (event, &rate, &format, &flags,
|
||||
&cur_type, &cur, &stop_type, &stop);
|
||||
|
||||
|
|
Loading…
Reference in a new issue