assrender: Make static caps actually static
authorSebastian Dröge <sebastian@centricular.com>
Sun, 29 Jun 2014 19:05:27 +0000 (21:05 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 29 Jun 2014 19:05:27 +0000 (21:05 +0200)
Otherwise we leak once caps instance on every function call.

ext/assrender/gstassrender.c

index 68462ca..369801c 100644 (file)
@@ -785,9 +785,9 @@ blit_bgra_premultiplied (GstAssRender * render, ASS_Image * ass_image,
 static gboolean
 gst_ass_render_can_handle_caps (GstCaps * incaps)
 {
+  static GstStaticCaps static_caps = GST_STATIC_CAPS (ASSRENDER_CAPS);
   gboolean ret;
   GstCaps *caps;
-  GstStaticCaps static_caps = GST_STATIC_CAPS (ASSRENDER_CAPS);
 
   caps = gst_static_caps_get (&static_caps);
   ret = gst_caps_is_subset (incaps, caps);