summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Söderquist <fs@opera.com>2010-06-24 14:55:57 (GMT)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-06-30 16:20:55 (GMT)
commit3c06cabb0b185e4ebbee0de89e343509b1f20af3 (patch)
treee22eb3a066bee23b8b9ba5807d1e9cdea444471f
parent10e89016addc954f2926fdad64036a401e2642e0 (diff)
oggdemux: Handle errors from _get_next_page in _do_seek.
If the source element failed here, oggdemux would crash. Fixes #623218.
-rw-r--r--ext/ogg/gstoggdemux.c3
1 files changed, 2 insertions, 1 deletions
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));