mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
mpeg2dec: Add comment explaining why we first chain up to the parent class' decide_allocation
This commit is contained in:
parent
a7aa984d67
commit
7c99d37ad6
1 changed files with 2 additions and 0 deletions
|
@ -269,6 +269,8 @@ gst_mpeg2dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
|
||||||
if (allocator)
|
if (allocator)
|
||||||
gst_allocator_unref (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,
|
if (!GST_VIDEO_DECODER_CLASS (parent_class)->decide_allocation (decoder,
|
||||||
query))
|
query))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue