From 3c06cabb0b185e4ebbee0de89e343509b1f20af3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fredrik=20S=C3=B6derquist?= Date: Thu, 24 Jun 2010 16:55:57 +0200 Subject: [PATCH] oggdemux: Handle errors from _get_next_page in _do_seek. If the source element failed here, oggdemux would crash. Fixes #623218. --- ext/ogg/gstoggdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 53ab457..bb5362f 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2085,7 +2085,8 @@ gst_ogg_demux_do_seek (GstOggDemux * ogg, GstSegment * segment, if (ret == GST_FLOW_LIMIT) { GST_LOG_OBJECT (ogg, "reached limit"); break; - } + } else if (ret != GST_FLOW_OK) + goto seek_error; /* get the stream */ pad = gst_ogg_chain_get_stream (chain, ogg_page_serialno (&og)); -- 2.7.4