From 4d3311566c33e95e8d9588a3aeb4c8796f02eb28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 14 Apr 2011 15:03:56 +0100 Subject: [PATCH] dvdread, sidplay, x264enc: fix unused-but-set-variable warnings with gcc 4.6 --- ext/dvdread/dvdreadsrc.c | 3 +-- ext/sidplay/gstsiddec.cc | 2 -- ext/x264/gstx264enc.c | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c index dea0200..a46ee4c 100644 --- a/ext/dvdread/dvdreadsrc.c +++ b/ext/dvdread/dvdreadsrc.c @@ -724,7 +724,7 @@ gst_dvd_read_src_read (GstDvdReadSrc * src, gint angle, gint new_seek, GstSegment *seg; guint8 oneblock[DVD_VIDEO_LB_LEN]; dsi_t dsi_pack; - guint next_vobu, next_ilvu_start, cur_output_size; + guint next_vobu, cur_output_size; gint len; gint retries; gint64 next_time; @@ -811,7 +811,6 @@ nav_retry: /* determine where we go next. These values are the ones we * mostly care about */ - next_ilvu_start = src->cur_pack + dsi_pack.sml_agli.data[angle].address; cur_output_size = dsi_pack.dsi_gi.vobu_ea + 1; /* If we're not at the end of this cell, we can determine the next diff --git a/ext/sidplay/gstsiddec.cc b/ext/sidplay/gstsiddec.cc index ebdef08..7f0a94a 100644 --- a/ext/sidplay/gstsiddec.cc +++ b/ext/sidplay/gstsiddec.cc @@ -189,10 +189,8 @@ static void gst_siddec_class_init (GstSidDec * klass) { GObjectClass *gobject_class; - GstElementClass *gstelement_class; gobject_class = (GObjectClass *) klass; - gstelement_class = (GstElementClass *) klass; parent_class = GST_ELEMENT_CLASS (g_type_class_peek_parent (klass)); diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 63f6159..098b41f 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1667,7 +1667,6 @@ gst_x264_enc_encode_frame (GstX264Enc * encoder, x264_picture_t * pic_in, #endif int encoder_return; GstFlowReturn ret; - GstClockTime timestamp; GstClockTime duration; guint8 *data; GstEvent *forcekeyunit_event = NULL; @@ -1723,7 +1722,6 @@ gst_x264_enc_encode_frame (GstX264Enc * encoder, x264_picture_t * pic_in, in_buf = g_queue_pop_head (encoder->delay); if (in_buf) { - timestamp = GST_BUFFER_TIMESTAMP (in_buf); duration = GST_BUFFER_DURATION (in_buf); gst_buffer_unref (in_buf); } else { -- 2.7.4