From 03bb5dc8ba369fd37c70c322c7bee76df082a88b Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Mon, 30 May 2011 17:54:26 +0530 Subject: [PATCH] Remove unused but set variables This is needed to satisfy the new -Wunused-but-set-variable added in GCC 4.6: http://gcc.gnu.org/gcc-4.6/changes.html --- gst-libs/gst/video/gstbasevideodecoder.c | 5 ----- gst-libs/gst/video/gstbasevideoencoder.c | 4 ---- gst/camerabin/gstcamerabin.c | 2 -- 3 files changed, 11 deletions(-) diff --git a/gst-libs/gst/video/gstbasevideodecoder.c b/gst-libs/gst/video/gstbasevideodecoder.c index 16c35ecd6f..f2fd2cb471 100644 --- a/gst-libs/gst/video/gstbasevideodecoder.c +++ b/gst-libs/gst/video/gstbasevideodecoder.c @@ -892,11 +892,6 @@ static void gst_base_video_decoder_reset (GstBaseVideoDecoder * base_video_decoder, gboolean full) { - GstBaseVideoDecoderClass *base_video_decoder_class; - - base_video_decoder_class = - GST_BASE_VIDEO_DECODER_GET_CLASS (base_video_decoder); - GST_DEBUG_OBJECT (base_video_decoder, "reset full %d", full); if (full) { diff --git a/gst-libs/gst/video/gstbasevideoencoder.c b/gst-libs/gst/video/gstbasevideoencoder.c index 67b139454b..1c27a72ef1 100644 --- a/gst-libs/gst/video/gstbasevideoencoder.c +++ b/gst-libs/gst/video/gstbasevideoencoder.c @@ -368,12 +368,8 @@ static gboolean gst_base_video_encoder_sink_eventfunc (GstBaseVideoEncoder * base_video_encoder, GstEvent * event) { - GstBaseVideoEncoderClass *base_video_encoder_class; gboolean ret = FALSE; - base_video_encoder_class = - GST_BASE_VIDEO_ENCODER_GET_CLASS (base_video_encoder); - switch (GST_EVENT_TYPE (event)) { case GST_EVENT_EOS: { diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index d0cdcebe6a..fe41e38199 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -1811,7 +1811,6 @@ gst_camerabin_have_img_buffer (GstPad * pad, GstMiniObject * obj, if (GST_IS_BUFFER (obj)) { GstBuffer *buffer = GST_BUFFER_CAST (obj); GstStructure *fn_ev_struct = NULL; - gboolean ret = TRUE; GstPad *os_sink = NULL; GST_LOG ("got buffer %p with size %d", buffer, GST_BUFFER_SIZE (buffer)); @@ -1823,7 +1822,6 @@ gst_camerabin_have_img_buffer (GstPad * pad, GstMiniObject * obj, /* Image filename should be set by now */ if (g_str_equal (camera->filename->str, "")) { GST_DEBUG_OBJECT (camera, "filename not set, dropping buffer"); - ret = FALSE; CAMERABIN_PROCESSING_DEC_UNLOCKED (camera); goto done; }