Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Camilo Celis Guzman
gst-plugins-good
Commits
d596c2e9
Commit
d596c2e9
authored
Apr 15, 2011
by
Robert Swain
Committed by
Tim-Philipp Müller
Apr 16, 2011
Browse files
matroska: Remove unused but set variables
GCC 4.6.x spits warnings about such variable usage.
parent
101087a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
gst/matroska/matroska-demux.c
View file @
d596c2e9
...
...
@@ -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
;
...
...
gst/matroska/matroska-parse.c
View file @
d596c2e9
...
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment