mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-13 17:58:22 +00:00
schroedinger: Remove dead assignments
This commit is contained in:
parent
c9aa47505a
commit
52239c16af
|
@ -133,10 +133,8 @@ gst_schro_dec_class_init (GstSchroDecClass * klass)
|
|||
{
|
||||
GObjectClass *gobject_class;
|
||||
GstBaseVideoDecoderClass *base_video_decoder_class;
|
||||
GstElementClass *element_class;
|
||||
|
||||
gobject_class = G_OBJECT_CLASS (klass);
|
||||
element_class = GST_ELEMENT_CLASS (klass);
|
||||
base_video_decoder_class = GST_BASE_VIDEO_DECODER_CLASS (klass);
|
||||
|
||||
gobject_class->set_property = gst_schro_dec_set_property;
|
||||
|
@ -656,14 +654,11 @@ gst_schro_dec_handle_frame (GstBaseVideoDecoder * base_video_decoder,
|
|||
GstSchroDec *schro_dec;
|
||||
int schro_ret;
|
||||
SchroBuffer *input_buffer;
|
||||
GstVideoState *state;
|
||||
|
||||
schro_dec = GST_SCHRO_DEC (base_video_decoder);
|
||||
|
||||
GST_DEBUG ("handle frame");
|
||||
|
||||
state = gst_base_video_decoder_get_state (base_video_decoder);
|
||||
|
||||
gst_base_video_decoder_set_src_caps (base_video_decoder);
|
||||
|
||||
input_buffer = gst_schro_wrap_gst_buffer (frame->sink_buffer);
|
||||
|
|
|
@ -177,12 +177,10 @@ static void
|
|||
gst_schro_enc_class_init (GstSchroEncClass * klass)
|
||||
{
|
||||
GObjectClass *gobject_class;
|
||||
GstElementClass *gstelement_class;
|
||||
GstBaseVideoEncoderClass *basevideocoder_class;
|
||||
int i;
|
||||
|
||||
gobject_class = G_OBJECT_CLASS (klass);
|
||||
gstelement_class = GST_ELEMENT_CLASS (klass);
|
||||
basevideocoder_class = GST_BASE_VIDEO_ENCODER_CLASS (klass);
|
||||
|
||||
gobject_class->set_property = gst_schro_enc_set_property;
|
||||
|
|
|
@ -100,8 +100,6 @@ enum
|
|||
ARG_0
|
||||
};
|
||||
|
||||
static void gst_schro_parse_finalize (GObject * object);
|
||||
|
||||
static gboolean gst_schro_parse_start (GstBaseVideoParse * base_video_parse);
|
||||
static gboolean gst_schro_parse_stop (GstBaseVideoParse * base_video_parse);
|
||||
static gboolean gst_schro_parse_reset (GstBaseVideoParse * base_video_parse);
|
||||
|
@ -152,16 +150,10 @@ gst_schro_parse_base_init (gpointer g_class)
|
|||
static void
|
||||
gst_schro_parse_class_init (GstSchroParseClass * klass)
|
||||
{
|
||||
GObjectClass *gobject_class;
|
||||
GstElementClass *element_class;
|
||||
GstBaseVideoParseClass *base_video_parse_class;
|
||||
|
||||
gobject_class = G_OBJECT_CLASS (klass);
|
||||
element_class = GST_ELEMENT_CLASS (klass);
|
||||
base_video_parse_class = GST_BASE_VIDEO_PARSE_CLASS (klass);
|
||||
|
||||
gobject_class->finalize = gst_schro_parse_finalize;
|
||||
|
||||
base_video_parse_class->start = GST_DEBUG_FUNCPTR (gst_schro_parse_start);
|
||||
base_video_parse_class->stop = GST_DEBUG_FUNCPTR (gst_schro_parse_stop);
|
||||
base_video_parse_class->reset = GST_DEBUG_FUNCPTR (gst_schro_parse_reset);
|
||||
|
@ -191,26 +183,11 @@ gst_schro_parse_init (GstSchroParse * schro_parse, GstSchroParseClass * klass)
|
|||
static gboolean
|
||||
gst_schro_parse_reset (GstBaseVideoParse * base_video_parse)
|
||||
{
|
||||
GstSchroParse *schro_parse;
|
||||
|
||||
schro_parse = GST_SCHRO_PARSE (base_video_parse);
|
||||
|
||||
GST_DEBUG ("reset");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_schro_parse_finalize (GObject * object)
|
||||
{
|
||||
GstSchroParse *schro_parse;
|
||||
|
||||
g_return_if_fail (GST_IS_SCHRO_PARSE (object));
|
||||
schro_parse = GST_SCHRO_PARSE (object);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_schro_parse_start (GstBaseVideoParse * base_video_parse)
|
||||
{
|
||||
|
@ -490,9 +467,6 @@ gst_schro_parse_shape_output_mpeg_ts (GstBaseVideoParse * base_video_parse,
|
|||
GstVideoFrame * frame)
|
||||
{
|
||||
GstBuffer *buf = frame->src_buffer;
|
||||
const GstVideoState *state;
|
||||
|
||||
state = gst_base_video_parse_get_state (base_video_parse);
|
||||
|
||||
return gst_base_video_parse_push (base_video_parse, buf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue