From 9cb2a4f461d280ade142de041212343b15b971ae Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Sat, 2 Aug 2008 17:59:05 +0000 Subject: gst/matroska/matroska-demux.c: If no Tracks are found error out instead of trying it again until the end of time. Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_demux_loop_stream_parse_id): If no Tracks are found error out instead of trying it again until the end of time. --- gst/matroska/matroska-demux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst') diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index bea8c8c4..0b75ddf4 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -4546,7 +4546,7 @@ gst_matroska_demux_loop_stream_parse_id (GstMatroskaDemux * demux, } if (ret != GST_FLOW_OK) - break; + return ret; demux->state = GST_MATROSKA_DEMUX_STATE_DATA; /* send initial discont */ @@ -4601,7 +4601,7 @@ gst_matroska_demux_loop_stream_parse_id (GstMatroskaDemux * demux, return ret; break; } - return GST_FLOW_OK; + return ret; } static GstFlowReturn -- cgit