mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
assrender: Make static caps actually static
Otherwise we leak once caps instance on every function call.
This commit is contained in:
parent
01fd3a1396
commit
7f7793ef79
1 changed files with 1 additions and 1 deletions
|
@ -785,9 +785,9 @@ blit_bgra_premultiplied (GstAssRender * render, ASS_Image * ass_image,
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_ass_render_can_handle_caps (GstCaps * incaps)
|
gst_ass_render_can_handle_caps (GstCaps * incaps)
|
||||||
{
|
{
|
||||||
|
static GstStaticCaps static_caps = GST_STATIC_CAPS (ASSRENDER_CAPS);
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstStaticCaps static_caps = GST_STATIC_CAPS (ASSRENDER_CAPS);
|
|
||||||
|
|
||||||
caps = gst_static_caps_get (&static_caps);
|
caps = gst_static_caps_get (&static_caps);
|
||||||
ret = gst_caps_is_subset (incaps, caps);
|
ret = gst_caps_is_subset (incaps, caps);
|
||||||
|
|
Loading…
Reference in a new issue