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 <slomo@circular-chaos.org>
Mon, 27 Oct 2008 09:27:18 +0000 (09:27 +0000)
Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_pull_tag):
Error out early if pulling a tag failed.

ChangeLog
gst/flv/gstflvdemux.c

index d1278e8b836ae2a1b2a8adcdcc86b77e81f989e2..3d80cf143fbb430fcde443660b290b5c96c44b12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-27  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
+
+       * gst/flv/gstflvdemux.c: (gst_flv_demux_pull_tag):
+       Error out early if pulling a tag failed.
+
 2008-10-27  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
 
        * gst/flv/gstflvdemux.c: (gst_flv_demux_create_index),
index 6448d6a5dad6699addb9dc217477555da9d856b3..afef17bdc50801c2abf47ba61ee8fcdb07a90b9d 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;