From 61202bb3640740d2cb98cf13922dcdf67970d5ef Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 30 Jan 2017 19:38:43 +0100 Subject: ytdl_hook, edl: implement pseudo-DASH support We use the metadata provided by youtube-dl to sort-of implement fragmented DASH streaming. This is all a bit hacky, but hopefully a makeshift solution until libavformat has proper mechanisms. (Although in danger of being one of those temporary hacks that become permanent.) --- demux/timeline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'demux/timeline.c') diff --git a/demux/timeline.c b/demux/timeline.c index 73f3ab79a2..700a6dfd05 100644 --- a/demux/timeline.c +++ b/demux/timeline.c @@ -33,8 +33,10 @@ void timeline_destroy(struct timeline *tl) return; for (int n = 0; n < tl->num_sources; n++) { struct demuxer *d = tl->sources[n]; - if (d != tl->demuxer) + if (d != tl->demuxer && d != tl->track_layout) free_demuxer_and_stream(d); } + if (tl->track_layout && tl->track_layout != tl->demuxer) + free_demuxer_and_stream(tl->track_layout); talloc_free(tl); } -- cgit v1.2.3