[gst-cvs] gst-plugins-good: [MOVED FROM BAD 37/57] gst/flv/gstflvdemux.c: Error out early if pulling a tag failed.
Sebastian Dröge
slomo at kemper.freedesktop.org
Tue May 12 12:57:59 PDT 2009
Module: gst-plugins-good
Branch: master
Commit: c61d041aca350a11e8d423ce1ad0e2a998d2bd91
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=c61d041aca350a11e8d423ce1ad0e2a998d2bd91
Author: Sebastian Dröge <slomo at circular-chaos.org>
Date: Mon Oct 27 09:27:18 2008 +0000
[MOVED FROM BAD 37/57] gst/flv/gstflvdemux.c: Error out early if pulling a tag failed.
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 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 6448d6a..afef17b 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -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;
More information about the Gstreamer-commits
mailing list