Skip to content

query: Add a query type that travels from children to their ancestors

Thibault Saunier requested to merge thiblahute/gstreamer:query_ancestors into main

The new GST_QUERY_TYPE_ANCESTORS is a new type of query that is aimed at querying parents of the elements.

This commit also adds the GST_QUERY_CUSTOM_ANCESTORS query which can be used by elements to query their parents.

This is useful for example in NLE when nested nlecomposition needs to query some information about their parents ones, for example, it needs to query the duration of its parent nlecomposition objects, wether the containing composition is going to send an initialization seek, or current overall pipeline position when committing. Until now the children where recursing upward to get the information but this is ugly and doesn't allow us to properly handle the case where the subtimelines are not actually in the same pipeline as their parents.

Edited by Thibault Saunier

Merge request reports