oggdemux: Handle errors from _get_next_page in _do_seek.

If the source element failed here, oggdemux would crash.

Fixes #623218.
This commit is contained in:
Fredrik Söderquist 2010-06-24 16:55:57 +02:00 committed by Tim-Philipp Müller
parent 10e89016ad
commit 3c06cabb0b

View file

@ -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));