diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index 6e9d4c1137..993dd9c132 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -267,7 +267,7 @@ gst_mpeg2dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query) else gst_query_add_allocation_param (query, allocator, ¶ms); if (allocator) - gst_allocator_unref (allocator); + gst_object_unref (allocator); /* Now chain up to the parent class to guarantee that we can * get a buffer pool from the query */