[Bug 788025] vaapih264enc leaks 1-4 frames of memory
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Sep 29 18:56:52 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=788025
--- Comment #14 from Harvey <hchapman-gnomebugzilla at 3gfp.com> ---
We've installed a work-around:
```
static void unrefVaapiDisplayContext(PrivateData *priv) {
GST_OBJECT_LOCK (priv->pipeline);
GstElement* element = GST_ELEMENT_CAST(priv->pipeline);
GList *l;
for (l = element->contexts; l;) {
GstContext *context = (GstContext*)l->data;
if (!gst_context_is_persistent (context)) {
if(g_strcmp0(gst_context_get_context_type(context),
"gst.vaapi.Display") == 0) {
GList *next;
gst_context_unref (context);
next = l->next;
element->contexts = g_list_delete_link (element->contexts, l);
l = next;
} else {
l = l->next;
}
} else {
l = l->next;
}
}
GST_OBJECT_UNLOCK (priv->pipeline);
}```
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list