Revert "gdpdepay: don't use allocator if it has custom alloc"

This reverts commit f6cb16ab8c.
This commit is contained in:
Víctor Manuel Jáquez Leal 2018-02-05 18:03:31 +01:00
parent 20a6dacf71
commit 8749c61e95

View file

@ -580,15 +580,6 @@ gst_gdp_depay_decide_allocation (GstGDPDepay * gdpdepay)
if (gdpdepay->allocator)
gst_object_unref (gdpdepay->allocator);
if (allocator &&
GST_OBJECT_FLAG_IS_SET (allocator, GST_ALLOCATOR_FLAG_CUSTOM_ALLOC)) {
GST_DEBUG_OBJECT (gdpdepay,
"Provided allocator has a custom alloc fuction. Ignoring.");
gst_object_unref (allocator);
allocator = NULL;
gst_allocation_params_init (&params);
}
gdpdepay->allocator = allocator;
gdpdepay->allocation_params = params;