mpeg2dec: Add comment explaining why we first chain up to the parent class' decide_allocation

This commit is contained in:
Sebastian Dröge 2012-06-25 09:43:53 +02:00
parent a7aa984d67
commit 7c99d37ad6

View file

@ -269,6 +269,8 @@ gst_mpeg2dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
if (allocator)
gst_allocator_unref (allocator);
/* Now chain up to the parent class to guarantee that we can
* get a buffer pool from the query */
if (!GST_VIDEO_DECODER_CLASS (parent_class)->decide_allocation (decoder,
query))
return FALSE;