[MOVED FROM BAD 37/57] gst/flv/gstflvdemux.c: Error out early if pulling a tag failed.
authorSebastian Dröge <slomo@circular-chaos.org>
Mon, 27 Oct 2008 09:27:18 +0000 (09:27 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 May 2009 19:20:58 +0000 (21:20 +0200)
Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_pull_tag):
Error out early if pulling a tag failed.

gst/flv/gstflvdemux.c

index 6448d6a..afef17b 100644 (file)
@@ -354,6 +354,9 @@ gst_flv_demux_pull_tag (GstPad * pad, GstFLVDemux * demux)
 
   gst_buffer_unref (buffer);
 
+  if (G_UNLIKELY (ret != GST_FLOW_OK))
+    goto beach;
+
   /* Jump over tag type + size */
   demux->offset += FLV_TAG_TYPE_SIZE;