oggdemux: Handle errors from _get_next_page in _do_seek.
authorFredrik Söderquist <fs@opera.com>
Thu, 24 Jun 2010 14:55:57 +0000 (16:55 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 30 Jun 2010 16:20:55 +0000 (17:20 +0100)
If the source element failed here, oggdemux would crash.

Fixes #623218.

ext/ogg/gstoggdemux.c

index 53ab457d0f3f4ee308e792ccb981aebcf30531ee..bb5362f27de30d643efe07d7de67d0751264506a 100644 (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));