dvdread, sidplay, x264enc: fix unused-but-set-variable warnings with gcc 4.6

This commit is contained in:
Tim-Philipp Müller 2011-04-14 15:03:56 +01:00
parent 81173fcbad
commit 4d3311566c
3 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -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));

View file

@ -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 {