summaryrefslogtreecommitdiffstats
path: root/gst/mpeg4videoparse
diff options
context:
space:
mode:
Diffstat (limited to 'gst/mpeg4videoparse')
-rw-r--r--gst/mpeg4videoparse/mpeg4videoparse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/mpeg4videoparse/mpeg4videoparse.c b/gst/mpeg4videoparse/mpeg4videoparse.c
index 1efa28be..e0e28d0c 100644
--- a/gst/mpeg4videoparse/mpeg4videoparse.c
+++ b/gst/mpeg4videoparse/mpeg4videoparse.c
@@ -726,6 +726,10 @@ gst_mpeg4vparse_cleanup (GstMpeg4VParse * parse)
if (parse->adapter) {
gst_adapter_clear (parse->adapter);
}
+ if (parse->config != NULL) {
+ gst_buffer_unref (parse->config);
+ parse->config = NULL;
+ }
parse->state = PARSE_NEED_START;
parse->have_config = FALSE;
@@ -760,6 +764,10 @@ gst_mpeg4vparse_dispose (GObject * object)
g_object_unref (parse->adapter);
parse->adapter = NULL;
}
+ if (parse->config != NULL) {
+ gst_buffer_unref (parse->config);
+ parse->config = NULL;
+ }
GST_CALL_PARENT (G_OBJECT_CLASS, dispose, (object));
}