summaryrefslogtreecommitdiff
path: root/gst/dvdspu/gstdvdspu.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-11 19:06:59 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-11 19:06:59 +0100
commit77299ba6aeb30a80b4ce9fc1fffd5e1c98c0842a (patch)
tree260b936d9a08939e0ac39165ffeb328cb6791fe5 /gst/dvdspu/gstdvdspu.c
parent857a9564f1992829655d4648898e069889f51844 (diff)
downloadgstreamer-plugins-bad-77299ba6aeb30a80b4ce9fc1fffd5e1c98c0842a.tar.gz
fix for caps api changes
Diffstat (limited to 'gst/dvdspu/gstdvdspu.c')
-rw-r--r--gst/dvdspu/gstdvdspu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c
index 044783270..2088581f0 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);