diff options
author | Fredrik Söderquist <fs@opera.com> | 2010-06-24 16:55:57 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-06-30 17:20:55 +0100 |
commit | 3c06cabb0b185e4ebbee0de89e343509b1f20af3 (patch) | |
tree | e22eb3a066bee23b8b9ba5807d1e9cdea444471f /ext/ogg/gstoggdemux.c | |
parent | 10e89016addc954f2926fdad64036a401e2642e0 (diff) |
oggdemux: Handle errors from _get_next_page in _do_seek.
If the source element failed here, oggdemux would crash.
Fixes #623218.
Diffstat (limited to 'ext/ogg/gstoggdemux.c')
-rw-r--r-- | ext/ogg/gstoggdemux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 53ab457d0..bb5362f27 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)); |