From: Robert Swain Date: Fri, 15 Apr 2011 09:23:38 +0000 (+0200) Subject: matroska: Remove unused but set variables X-Git-Tag: 1.19.3~509^2~7136^2~633 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d596c2e9267af5864ad6c4a48ef32654f8566aee;p=platform%2Fupstream%2Fgstreamer.git matroska: Remove unused but set variables GCC 4.6.x spits warnings about such variable usage. --- diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index ec0d2b0a5c..4d334b652e 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -1070,7 +1070,6 @@ gst_matroska_decode_content_encodings (GArray * encodings) for (i = 0; i < encodings->len; i++) { GstMatroskaTrackEncoding *enc = &g_array_index (encodings, GstMatroskaTrackEncoding, i); - GstMatroskaTrackEncoding *enc2; guint8 *data = NULL; guint size; @@ -1085,8 +1084,6 @@ gst_matroska_decode_content_encodings (GArray * encodings) if (i + 1 >= encodings->len) return GST_FLOW_ERROR; - enc2 = &g_array_index (encodings, GstMatroskaTrackEncoding, i + 1); - if (enc->comp_settings_length == 0) continue; diff --git a/gst/matroska/matroska-parse.c b/gst/matroska/matroska-parse.c index 7176b68634..24a95a9cc1 100644 --- a/gst/matroska/matroska-parse.c +++ b/gst/matroska/matroska-parse.c @@ -960,7 +960,6 @@ gst_matroska_decode_content_encodings (GArray * encodings) for (i = 0; i < encodings->len; i++) { GstMatroskaTrackEncoding *enc = &g_array_index (encodings, GstMatroskaTrackEncoding, i); - GstMatroskaTrackEncoding *enc2; guint8 *data = NULL; guint size; @@ -975,8 +974,6 @@ gst_matroska_decode_content_encodings (GArray * encodings) if (i + 1 >= encodings->len) return GST_FLOW_ERROR; - enc2 = &g_array_index (encodings, GstMatroskaTrackEncoding, i + 1); - if (enc->comp_settings_length == 0) continue; @@ -3462,9 +3459,6 @@ gst_matroska_parse_parse_blockgroup_or_simpleblock (GstMatroskaParse * parse, gint64 time = 0; gint flags = 0; gint64 referenceblock = 0; - gint64 offset; - - offset = gst_ebml_read_get_offset (ebml); while (ret == GST_FLOW_OK && gst_ebml_read_has_remaining (ebml, 1, TRUE)) { if (!is_simpleblock) { @@ -4070,11 +4064,10 @@ gst_matroska_parse_parse_contents_seekentry (GstMatroskaParse * parse, case GST_MATROSKA_ID_ATTACHMENTS: case GST_MATROSKA_ID_CHAPTERS: { - guint64 before_pos, length; + guint64 length; /* remember */ length = gst_matroska_parse_get_length (parse); - before_pos = parse->offset; if (length == (guint64) - 1) { GST_DEBUG_OBJECT (parse, "no upstream length, skipping SeakHead entry");