From 46c603da9300a13bf07988224895ebdc04691cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 27 Oct 2008 09:27:18 +0000 Subject: 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. --- ChangeLog | 5 +++++ gst/flv/gstflvdemux.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index d1278e8b..3d80cf14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-27 Sebastian Dröge + + * gst/flv/gstflvdemux.c: (gst_flv_demux_pull_tag): + Error out early if pulling a tag failed. + 2008-10-27 Sebastian Dröge * gst/flv/gstflvdemux.c: (gst_flv_demux_create_index), diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index 6448d6a5..afef17bd 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; -- cgit v1.2.1