summaryrefslogtreecommitdiffstats
path: root/demux/timeline.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/timeline.c')
-rw-r--r--demux/timeline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/timeline.c b/demux/timeline.c
index c44f67b166..86e4921280 100644
--- a/demux/timeline.c
+++ b/demux/timeline.c
@@ -31,6 +31,8 @@ void timeline_destroy(struct timeline *tl)
{
if (!tl)
return;
+ // (Sub timeline elements may depend on allocations in the parent one.)
+ timeline_destroy(tl->next);
for (int n = 0; n < tl->num_sources; n++) {
struct demuxer *d = tl->sources[n];
if (d != tl->demuxer && d != tl->track_layout)