From 52239c16af79190a647537ad1b0b7200f5e7ece0 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 25 Nov 2010 18:47:15 +0100 Subject: [PATCH] schroedinger: Remove dead assignments --- ext/schroedinger/gstschrodec.c | 5 ----- ext/schroedinger/gstschroenc.c | 2 -- ext/schroedinger/gstschroparse.c | 26 -------------------------- 3 files changed, 33 deletions(-) diff --git a/ext/schroedinger/gstschrodec.c b/ext/schroedinger/gstschrodec.c index dc80fcbc35..2282f7ee69 100644 --- a/ext/schroedinger/gstschrodec.c +++ b/ext/schroedinger/gstschrodec.c @@ -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); diff --git a/ext/schroedinger/gstschroenc.c b/ext/schroedinger/gstschroenc.c index 1ede926d8e..4a01028ece 100644 --- a/ext/schroedinger/gstschroenc.c +++ b/ext/schroedinger/gstschroenc.c @@ -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; diff --git a/ext/schroedinger/gstschroparse.c b/ext/schroedinger/gstschroparse.c index 8c51e3b20a..25711c8d14 100644 --- a/ext/schroedinger/gstschroparse.c +++ b/ext/schroedinger/gstschroparse.c @@ -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); }