diff options
Diffstat (limited to 'gst/dvdspu')
-rw-r--r-- | gst/dvdspu/gstdvdspu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c index 0447832706..2088581f0c 100644 --- a/gst/dvdspu/gstdvdspu.c +++ b/gst/dvdspu/gstdvdspu.c @@ -363,15 +363,15 @@ gst_dvd_spu_video_proxy_getcaps (GstPad * pad, GstCaps * filter) caps = gst_pad_peer_query_caps (otherpad, filter); if (caps) { - GstCaps *temp; - const GstCaps *templ; + GstCaps *temp, *templ; templ = gst_pad_get_pad_template_caps (otherpad); temp = gst_caps_intersect (caps, templ); + gst_caps_unref (templ); gst_caps_unref (caps); caps = temp; } else { - caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad)); + caps = gst_pad_get_pad_template_caps (pad); } gst_object_unref (dvdspu); |