matroskademux: Remove useless variable.

iret was never read outside of that loop, and is always being exited if
iret was != GST_FLOW_OK anyway.
This commit is contained in:
Edward Hervey 2009-04-18 18:19:12 +02:00
parent 1086c63827
commit b28c6ca0fb

View file

@ -4712,7 +4712,6 @@ gst_matroska_demux_loop_stream_parse_id (GstMatroskaDemux * demux,
*/ */
if (!demux->tracks_parsed) { if (!demux->tracks_parsed) {
GstEbmlLevel *level; GstEbmlLevel *level;
GstFlowReturn iret = GST_FLOW_OK;
guint32 iid; guint32 iid;
guint level_up; guint level_up;
guint64 before_pos; guint64 before_pos;
@ -4733,19 +4732,17 @@ gst_matroska_demux_loop_stream_parse_id (GstMatroskaDemux * demux,
ebml->level = g_list_prepend (ebml->level, level); ebml->level = g_list_prepend (ebml->level, level);
/* Search Tracks element */ /* Search Tracks element */
while (iret == GST_FLOW_OK) { while (TRUE) {
if ((iret = gst_ebml_read_skip (ebml)) != GST_FLOW_OK) if (gst_ebml_read_skip (ebml) != GST_FLOW_OK)
break; break;
if ((iret = if (gst_ebml_peek_id (ebml, &demux->level_up, &iid) != GST_FLOW_OK)
gst_ebml_peek_id (ebml, &demux->level_up,
&iid)) != GST_FLOW_OK)
break; break;
if (iid != GST_MATROSKA_ID_TRACKS) if (iid != GST_MATROSKA_ID_TRACKS)
continue; continue;
iret = gst_matroska_demux_parse_tracks (demux); gst_matroska_demux_parse_tracks (demux);
break; break;
} }