From 17f3810f7bfb6952cf3479f2a1a8a28359bf04f7 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 15 May 2009 16:21:15 -0700 Subject: [PATCH] video: remove // comments --- gst-libs/gst/video/gstbasevideocodec.c | 10 ---------- gst-libs/gst/video/gstbasevideodecoder.c | 9 --------- gst-libs/gst/video/gstbasevideoencoder.c | 5 ----- gst-libs/gst/video/gstbasevideoparse.c | 1 - 4 files changed, 25 deletions(-) diff --git a/gst-libs/gst/video/gstbasevideocodec.c b/gst-libs/gst/video/gstbasevideocodec.c index c9e4a83a69..42349f06d2 100644 --- a/gst-libs/gst/video/gstbasevideocodec.c +++ b/gst-libs/gst/video/gstbasevideocodec.c @@ -42,15 +42,8 @@ enum static void gst_base_video_codec_finalize (GObject * object); -//static const GstQueryType *gst_base_video_codec_get_query_types (GstPad *pad); -//static gboolean gst_base_video_codec_src_query (GstPad *pad, GstQuery *query); -//static gboolean gst_base_video_codec_sink_query (GstPad *pad, GstQuery *query); -//static gboolean gst_base_video_codec_src_event (GstPad *pad, GstEvent *event); -//static gboolean gst_base_video_codec_sink_event (GstPad *pad, GstEvent *event); static GstStateChangeReturn gst_base_video_codec_change_state (GstElement * element, GstStateChange transition); -//static GstFlowReturn gst_base_video_codec_push_all (GstBaseVideoCodec *base_video_codec, -// gboolean at_eos); GST_BOILERPLATE (GstBaseVideoCodec, gst_base_video_codec, GstElement, @@ -91,8 +84,6 @@ gst_base_video_codec_init (GstBaseVideoCodec * base_video_codec, g_return_if_fail (pad_template != NULL); base_video_codec->sinkpad = gst_pad_new_from_template (pad_template, "sink"); - //gst_pad_set_query_function (base_video_codec->sinkpad, - // gst_base_video_codec_sink_query); gst_element_add_pad (GST_ELEMENT (base_video_codec), base_video_codec->sinkpad); @@ -116,7 +107,6 @@ gst_base_video_codec_reset (GstBaseVideoCodec * base_video_codec) base_video_codec->system_frame_number = 0; - //gst_segment_init (&base_video_codec->state.segment, GST_FORMAT_TIME); gst_adapter_clear (base_video_codec->input_adapter); gst_adapter_clear (base_video_codec->output_adapter); diff --git a/gst-libs/gst/video/gstbasevideodecoder.c b/gst-libs/gst/video/gstbasevideodecoder.c index d8197bf6c6..4e7ae5e84d 100644 --- a/gst-libs/gst/video/gstbasevideodecoder.c +++ b/gst-libs/gst/video/gstbasevideodecoder.c @@ -40,7 +40,6 @@ static GstFlowReturn gst_base_video_decoder_chain (GstPad * pad, GstBuffer * buf); static gboolean gst_base_video_decoder_sink_query (GstPad * pad, GstQuery * query); -//static GstFlowReturn gst_base_video_decoder_process (GstBaseVideoDecoder *base_video_decoder); static GstStateChangeReturn gst_base_video_decoder_change_state (GstElement * element, GstStateChange transition); static const GstQueryType *gst_base_video_decoder_get_query_types (GstPad * @@ -193,7 +192,6 @@ gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event) frame->presentation_frame_number = base_video_decoder->presentation_frame_number; frame->presentation_duration = 0; - //frame->presentation_duration = 0; base_video_decoder->presentation_frame_number++; base_video_decoder->frames = @@ -225,10 +223,6 @@ gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event) GST_DEBUG ("new segment %lld %lld", start, position); - //gst_base_video_decoder_reset (base_video_decoder); - - //base_video_decoder->timestamp_offset = start; - gst_segment_set_newsegment_full (&base_video_decoder->state.segment, update, rate, applied_rate, format, start, stop, position); @@ -453,8 +447,6 @@ static const GstQueryType * gst_base_video_decoder_get_query_types (GstPad * pad) { static const GstQueryType query_types[] = { - //GST_QUERY_POSITION, - //GST_QUERY_DURATION, GST_QUERY_CONVERT, 0 }; @@ -584,7 +576,6 @@ gst_base_video_decoder_reset (GstBaseVideoDecoder * base_video_decoder) gst_caps_unref (base_video_decoder->caps); base_video_decoder->caps = NULL; } - //gst_segment_init (&base_video_decoder->state.segment, GST_FORMAT_TIME); if (base_video_decoder->current_frame) { gst_base_video_decoder_free_frame (base_video_decoder->current_frame); diff --git a/gst-libs/gst/video/gstbasevideoencoder.c b/gst-libs/gst/video/gstbasevideoencoder.c index baed60e55f..d0f88a1a81 100644 --- a/gst-libs/gst/video/gstbasevideoencoder.c +++ b/gst-libs/gst/video/gstbasevideoencoder.c @@ -35,7 +35,6 @@ static gboolean gst_base_video_encoder_sink_event (GstPad * pad, GstEvent * event); static GstFlowReturn gst_base_video_encoder_chain (GstPad * pad, GstBuffer * buf); -//static GstFlowReturn gst_base_video_encoder_process (GstBaseVideoEncoder *base_video_encoder); static GstStateChangeReturn gst_base_video_encoder_change_state (GstElement * element, GstStateChange transition); static const GstQueryType *gst_base_video_encoder_get_query_types (GstPad * @@ -82,7 +81,6 @@ gst_base_video_encoder_init (GstBaseVideoEncoder * base_video_encoder, gst_pad_set_chain_function (pad, gst_base_video_encoder_chain); gst_pad_set_event_function (pad, gst_base_video_encoder_sink_event); gst_pad_set_setcaps_function (pad, gst_base_video_encoder_sink_setcaps); - //gst_pad_set_query_function (pad, gst_base_video_encoder_sink_query); pad = GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder); @@ -150,7 +148,6 @@ gst_base_video_encoder_sink_event (GstPad * pad, GstEvent * event) base_video_encoder->presentation_frame_number; frame->presentation_duration = 0; frame->is_eos = TRUE; - //frame->presentation_duration = 0; base_video_encoder->presentation_frame_number++; base_video_encoder->frames = @@ -212,8 +209,6 @@ static const GstQueryType * gst_base_video_encoder_get_query_types (GstPad * pad) { static const GstQueryType query_types[] = { - //GST_QUERY_POSITION, - //GST_QUERY_DURATION, GST_QUERY_CONVERT, GST_QUERY_LATENCY, 0 diff --git a/gst-libs/gst/video/gstbasevideoparse.c b/gst-libs/gst/video/gstbasevideoparse.c index 0181e474b7..c4a34009d3 100644 --- a/gst-libs/gst/video/gstbasevideoparse.c +++ b/gst-libs/gst/video/gstbasevideoparse.c @@ -633,7 +633,6 @@ gst_base_video_parse_chain (GstPad * pad, GstBuffer * buf) buffer = gst_adapter_get_buffer (base_video_parse->input_adapter); - //base_video_parse->buffer_timestamp = GST_BUFFER_TIMESTAMP (buffer); gst_buffer_unref (buffer); /* FIXME check klass->parse_data */