mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
matroska: Remove unused but set variables
GCC 4.6.x spits warnings about such variable usage.
This commit is contained in:
parent
101087a23a
commit
d596c2e926
2 changed files with 1 additions and 11 deletions
|
@ -1070,7 +1070,6 @@ gst_matroska_decode_content_encodings (GArray * encodings)
|
||||||
for (i = 0; i < encodings->len; i++) {
|
for (i = 0; i < encodings->len; i++) {
|
||||||
GstMatroskaTrackEncoding *enc =
|
GstMatroskaTrackEncoding *enc =
|
||||||
&g_array_index (encodings, GstMatroskaTrackEncoding, i);
|
&g_array_index (encodings, GstMatroskaTrackEncoding, i);
|
||||||
GstMatroskaTrackEncoding *enc2;
|
|
||||||
guint8 *data = NULL;
|
guint8 *data = NULL;
|
||||||
guint size;
|
guint size;
|
||||||
|
|
||||||
|
@ -1085,8 +1084,6 @@ gst_matroska_decode_content_encodings (GArray * encodings)
|
||||||
if (i + 1 >= encodings->len)
|
if (i + 1 >= encodings->len)
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
|
|
||||||
enc2 = &g_array_index (encodings, GstMatroskaTrackEncoding, i + 1);
|
|
||||||
|
|
||||||
if (enc->comp_settings_length == 0)
|
if (enc->comp_settings_length == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
@ -960,7 +960,6 @@ gst_matroska_decode_content_encodings (GArray * encodings)
|
||||||
for (i = 0; i < encodings->len; i++) {
|
for (i = 0; i < encodings->len; i++) {
|
||||||
GstMatroskaTrackEncoding *enc =
|
GstMatroskaTrackEncoding *enc =
|
||||||
&g_array_index (encodings, GstMatroskaTrackEncoding, i);
|
&g_array_index (encodings, GstMatroskaTrackEncoding, i);
|
||||||
GstMatroskaTrackEncoding *enc2;
|
|
||||||
guint8 *data = NULL;
|
guint8 *data = NULL;
|
||||||
guint size;
|
guint size;
|
||||||
|
|
||||||
|
@ -975,8 +974,6 @@ gst_matroska_decode_content_encodings (GArray * encodings)
|
||||||
if (i + 1 >= encodings->len)
|
if (i + 1 >= encodings->len)
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
|
|
||||||
enc2 = &g_array_index (encodings, GstMatroskaTrackEncoding, i + 1);
|
|
||||||
|
|
||||||
if (enc->comp_settings_length == 0)
|
if (enc->comp_settings_length == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -3462,9 +3459,6 @@ gst_matroska_parse_parse_blockgroup_or_simpleblock (GstMatroskaParse * parse,
|
||||||
gint64 time = 0;
|
gint64 time = 0;
|
||||||
gint flags = 0;
|
gint flags = 0;
|
||||||
gint64 referenceblock = 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)) {
|
while (ret == GST_FLOW_OK && gst_ebml_read_has_remaining (ebml, 1, TRUE)) {
|
||||||
if (!is_simpleblock) {
|
if (!is_simpleblock) {
|
||||||
|
@ -4070,11 +4064,10 @@ gst_matroska_parse_parse_contents_seekentry (GstMatroskaParse * parse,
|
||||||
case GST_MATROSKA_ID_ATTACHMENTS:
|
case GST_MATROSKA_ID_ATTACHMENTS:
|
||||||
case GST_MATROSKA_ID_CHAPTERS:
|
case GST_MATROSKA_ID_CHAPTERS:
|
||||||
{
|
{
|
||||||
guint64 before_pos, length;
|
guint64 length;
|
||||||
|
|
||||||
/* remember */
|
/* remember */
|
||||||
length = gst_matroska_parse_get_length (parse);
|
length = gst_matroska_parse_get_length (parse);
|
||||||
before_pos = parse->offset;
|
|
||||||
|
|
||||||
if (length == (guint64) - 1) {
|
if (length == (guint64) - 1) {
|
||||||
GST_DEBUG_OBJECT (parse, "no upstream length, skipping SeakHead entry");
|
GST_DEBUG_OBJECT (parse, "no upstream length, skipping SeakHead entry");
|
||||||
|
|
Loading…
Reference in a new issue