deinterlace: plug some leaks

This commit is contained in:
Mark Nauwelaerts 2012-09-06 17:04:39 +02:00
parent 510482b01a
commit 1ce09d7ef9

View File

@ -852,6 +852,8 @@ gst_deinterlace_reset (GstDeinterlace * self)
self->need_more = FALSE; self->need_more = FALSE;
self->have_eos = FALSE; self->have_eos = FALSE;
gst_deinterlace_set_allocation (self, NULL, NULL, NULL);
} }
static void static void
@ -2353,6 +2355,8 @@ gst_deinterlace_do_bufferpool (GstDeinterlace * self, GstCaps * outcaps)
/* now store */ /* now store */
result = gst_deinterlace_set_allocation (self, pool, allocator, &params); result = gst_deinterlace_set_allocation (self, pool, allocator, &params);
gst_query_unref (query);
return result; return result;
} }