dvbsuboverlay: Fix caps memory leak by making static caps actually static

See https://bugzilla.gnome.org/show_bug.cgi?id=754157
This commit is contained in:
Sebastian Dröge 2015-08-27 11:10:05 +03:00
parent ef7f5fc4c7
commit 50fc332ab5

View file

@ -647,7 +647,7 @@ gst_dvbsub_overlay_can_handle_caps (GstCaps * incaps)
{
gboolean ret;
GstCaps *caps;
GstStaticCaps static_caps = GST_STATIC_CAPS (DVBSUB_OVERLAY_CAPS);
static GstStaticCaps static_caps = GST_STATIC_CAPS (DVBSUB_OVERLAY_CAPS);
caps = gst_static_caps_get (&static_caps);
ret = gst_caps_is_subset (incaps, caps);