From 7c99d37ad674dd34bb58a0c430dad9074e938c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 25 Jun 2012 09:43:53 +0200 Subject: [PATCH] mpeg2dec: Add comment explaining why we first chain up to the parent class' decide_allocation --- ext/mpeg2dec/gstmpeg2dec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index 6417450d0c..7032be83bb 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -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;