summaryrefslogtreecommitdiff
path: root/gst/h264parse/gsth264parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/h264parse/gsth264parse.c')
-rw-r--r--gst/h264parse/gsth264parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/h264parse/gsth264parse.c b/gst/h264parse/gsth264parse.c
index 12b2ba726..45d633790 100644
--- a/gst/h264parse/gsth264parse.c
+++ b/gst/h264parse/gsth264parse.c
@@ -704,6 +704,8 @@ gst_h264_parse_chain_reverse (GstH264Parse * h264parse, gboolean discont,
guint8 *data;
/* get new buffer and init the start code search to the end position */
+ if (gbuf != NULL)
+ gst_buffer_unref (gbuf);
gbuf = GST_BUFFER_CAST (h264parse->gather->data);
/* remove from the gather list, they are in reverse order */