summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-12-09 17:49:40 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-12-09 17:49:40 +0200
commita08e72547dc1ec4d234f0be598a7c9c135188511 (patch)
tree402da78e05b55645838c7e8c4525548c92c4002e
parent1ea9735afbe8fd88aa8020fa0afcaa7c1f780f5b (diff)
flxdec: Unref and unmap buffers in all code paths as needed
https://bugzilla.gnome.org/show_bug.cgi?id=775888
-rw-r--r--gst/flx/gstflxdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c
index 193225907..55aa55097 100644
--- a/gst/flx/gstflxdec.c
+++ b/gst/flx/gstflxdec.c
@@ -902,10 +902,9 @@ gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
}
}
+need_more_data:
gst_buffer_unmap (input, &map_info);
gst_buffer_unref (input);
-
-need_more_data:
return res;
/* ERRORS */
@@ -914,8 +913,8 @@ parse_error:
("%s", "Failed to parse stream"), (NULL));
unmap_input_error:
gst_buffer_unmap (input, &map_info);
- gst_buffer_unref (input);
error:
+ gst_buffer_unref (input);
return GST_FLOW_ERROR;
}