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;
|
GObjectClass *gobject_class;
|
||||||
GstBaseVideoDecoderClass *base_video_decoder_class;
|
GstBaseVideoDecoderClass *base_video_decoder_class;
|
||||||
GstElementClass *element_class;
|
|
||||||
|
|
||||||
gobject_class = G_OBJECT_CLASS (klass);
|
gobject_class = G_OBJECT_CLASS (klass);
|
||||||
element_class = GST_ELEMENT_CLASS (klass);
|
|
||||||
base_video_decoder_class = GST_BASE_VIDEO_DECODER_CLASS (klass);
|
base_video_decoder_class = GST_BASE_VIDEO_DECODER_CLASS (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_schro_dec_set_property;
|
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;
|
GstSchroDec *schro_dec;
|
||||||
int schro_ret;
|
int schro_ret;
|
||||||
SchroBuffer *input_buffer;
|
SchroBuffer *input_buffer;
|
||||||
GstVideoState *state;
|
|
||||||
|
|
||||||
schro_dec = GST_SCHRO_DEC (base_video_decoder);
|
schro_dec = GST_SCHRO_DEC (base_video_decoder);
|
||||||
|
|
||||||
GST_DEBUG ("handle frame");
|
GST_DEBUG ("handle frame");
|
||||||
|
|
||||||
state = gst_base_video_decoder_get_state (base_video_decoder);
|
|
||||||
|
|
||||||
gst_base_video_decoder_set_src_caps (base_video_decoder);
|
gst_base_video_decoder_set_src_caps (base_video_decoder);
|
||||||
|
|
||||||
input_buffer = gst_schro_wrap_gst_buffer (frame->sink_buffer);
|
input_buffer = gst_schro_wrap_gst_buffer (frame->sink_buffer);
|
||||||
|
@ -177,12 +177,10 @@ static void
|
|||||||
gst_schro_enc_class_init (GstSchroEncClass * klass)
|
gst_schro_enc_class_init (GstSchroEncClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
GstBaseVideoEncoderClass *basevideocoder_class;
|
GstBaseVideoEncoderClass *basevideocoder_class;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
gobject_class = G_OBJECT_CLASS (klass);
|
gobject_class = G_OBJECT_CLASS (klass);
|
||||||
gstelement_class = GST_ELEMENT_CLASS (klass);
|
|
||||||
basevideocoder_class = GST_BASE_VIDEO_ENCODER_CLASS (klass);
|
basevideocoder_class = GST_BASE_VIDEO_ENCODER_CLASS (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_schro_enc_set_property;
|
gobject_class->set_property = gst_schro_enc_set_property;
|
||||||
|
@ -100,8 +100,6 @@ enum
|
|||||||
ARG_0
|
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_start (GstBaseVideoParse * base_video_parse);
|
||||||
static gboolean gst_schro_parse_stop (GstBaseVideoParse * base_video_parse);
|
static gboolean gst_schro_parse_stop (GstBaseVideoParse * base_video_parse);
|
||||||
static gboolean gst_schro_parse_reset (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
|
static void
|
||||||
gst_schro_parse_class_init (GstSchroParseClass * klass)
|
gst_schro_parse_class_init (GstSchroParseClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
|
||||||
GstElementClass *element_class;
|
|
||||||
GstBaseVideoParseClass *base_video_parse_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);
|
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->start = GST_DEBUG_FUNCPTR (gst_schro_parse_start);
|
||||||
base_video_parse_class->stop = GST_DEBUG_FUNCPTR (gst_schro_parse_stop);
|
base_video_parse_class->stop = GST_DEBUG_FUNCPTR (gst_schro_parse_stop);
|
||||||
base_video_parse_class->reset = GST_DEBUG_FUNCPTR (gst_schro_parse_reset);
|
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
|
static gboolean
|
||||||
gst_schro_parse_reset (GstBaseVideoParse * base_video_parse)
|
gst_schro_parse_reset (GstBaseVideoParse * base_video_parse)
|
||||||
{
|
{
|
||||||
GstSchroParse *schro_parse;
|
|
||||||
|
|
||||||
schro_parse = GST_SCHRO_PARSE (base_video_parse);
|
|
||||||
|
|
||||||
GST_DEBUG ("reset");
|
GST_DEBUG ("reset");
|
||||||
|
|
||||||
return TRUE;
|
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
|
static gboolean
|
||||||
gst_schro_parse_start (GstBaseVideoParse * base_video_parse)
|
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)
|
GstVideoFrame * frame)
|
||||||
{
|
{
|
||||||
GstBuffer *buf = frame->src_buffer;
|
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);
|
return gst_base_video_parse_push (base_video_parse, buf);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user