diff options
Diffstat (limited to 'gst/interlace')
-rw-r--r-- | gst/interlace/gstinterlace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c index c503abf15..6cd369bf5 100644 --- a/gst/interlace/gstinterlace.c +++ b/gst/interlace/gstinterlace.c @@ -523,6 +523,7 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter) if (othercaps) { icaps = gst_caps_intersect (othercaps, tcaps); gst_caps_unref (othercaps); + gst_caps_unref (tcaps); } else { icaps = tcaps; } @@ -542,8 +543,6 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter) gst_caps_set_simple (icaps, "interlace-mode", G_TYPE_STRING, pad == interlace->srcpad ? mode : "progressive", NULL); - gst_caps_unref (tcaps); - if (clean_filter) gst_caps_unref (clean_filter); |