From 87db2f24e8eca23664dc23128b8fca2b5d07125d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 11 Jan 2019 14:10:41 +0100 Subject: demux_edl, cue, mkv: slightly nicer file format indication Instead of just using "edl/" for the file format, report mkv_oc if it's generated from ordered chapters, "cue/" if from .cue, "multi/" if it's from EDL but only for adding separate streams, "dash/" if it's from EDL but only using the DASH hack, and "edl/" for everything else. The EDL variants are mostly special-cased to the variants the ytdl wrapper usually generates. This has no effect other than what the command.c file-format property returns. --- demux/demux_timeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demux/demux_timeline.c') diff --git a/demux/demux_timeline.c b/demux/demux_timeline.c index 1d692d8387..9a1fb8aed4 100644 --- a/demux/demux_timeline.c +++ b/demux/demux_timeline.c @@ -466,8 +466,8 @@ static int d_open(struct demuxer *demuxer, enum demux_check check) demuxer->seekable = true; demuxer->partially_seekable = false; - demuxer->filetype = talloc_asprintf(p, "edl/%s%s", - p->sources[0]->dash ? "dash/" : "", + demuxer->filetype = talloc_asprintf(p, "%s/%s", + p->tl->format, meta->filetype ? meta->filetype : meta->desc->name); reselect_streams(demuxer); -- cgit v1.2.3