mpegstream: fix unused-but-set-variable warnings with gcc 4.6

This commit is contained in:
Tim-Philipp Müller 2011-04-14 15:04:19 +01:00
parent 4d3311566c
commit 120731ee4e

View file

@ -636,8 +636,7 @@ gst_mpeg_demux_parse_packet (GstMPEGParse * mpeg_parse, GstBuffer * buffer)
guint16 headerlen; guint16 headerlen;
guint16 packet_length; guint16 packet_length;
gboolean STD_buffer_bound_scale; guint16 STD_buffer_size_bound G_GNUC_UNUSED;
guint16 STD_buffer_size_bound;
guint64 dts; guint64 dts;
gint64 pts = -1; gint64 pts = -1;
@ -677,7 +676,7 @@ gst_mpeg_demux_parse_packet (GstMPEGParse * mpeg_parse, GstBuffer * buffer)
case 0x40: case 0x40:
GST_DEBUG_OBJECT (mpeg_demux, "have STD"); GST_DEBUG_OBJECT (mpeg_demux, "have STD");
STD_buffer_bound_scale = bits & 0x20; /* STD_buffer_bound_scale = ((bits & 0x20) == 0x20); */
STD_buffer_size_bound = ((guint16) (bits & 0x1F)) << 8; STD_buffer_size_bound = ((guint16) (bits & 0x1F)) << 8;
STD_buffer_size_bound |= *buf++; STD_buffer_size_bound |= *buf++;