nle: Handle nested timelines update when file changes
authorThibault Saunier <tsaunier@igalia.com>
Wed, 10 Jul 2019 15:02:07 +0000 (11:02 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 26 Jul 2019 17:48:51 +0000 (13:48 -0400)
commita55296314c6bd19683cdaf77146deedab247e9a6
tree4fc6fc6106478b86fd01588b814ae9239a25a538
parent70d423575dbedd1b72826362a6a64365470844b5
nle: Handle nested timelines update when file changes

When we have nested timelines, we need to make sure the underlying
formatted file is reloaded when commiting the main composition to
take into account the new timeline.

In other to make the implementation as simple as possible we make
sure that whenever the toplevel composition is commited, the decodebin
holding the gesdemux is torn down so that a new demuxer is created
with the new content of the timeline.

To do that a we do a NleCompositionQueryNeedsTearDown query to which
gesdemux answers leading to a full nlecomposition stack
deactivation/activation cycle.
ges/ges-structured-interface.c
plugins/ges/gesdemux.c
plugins/nle/nlecomposition.c