diff options
author | wm4 <wm4@nowhere> | 2019-01-11 12:07:55 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | 19422f0eea7fbc4c9c02ac16d832a667f4a1be7c (patch) | |
tree | a9d1768ed7e65f65331b2fb7806e97a2321c7a4c /demux/demux_edl.c | |
parent | 7498fa0b3d50d9a8b0f63568b5c5dd88795b596d (diff) | |
download | mpv-19422f0eea7fbc4c9c02ac16d832a667f4a1be7c.tar.bz2 mpv-19422f0eea7fbc4c9c02ac16d832a667f4a1be7c.tar.xz |
demux_edl: add no_clip
Used by the next commit. It mostly exposes part of mp4_dash
functionality. It actually makes little sense other than for ytdl
special-use. See next commit.
Diffstat (limited to 'demux/demux_edl.c')
-rw-r--r-- | demux/demux_edl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demux/demux_edl.c b/demux/demux_edl.c index 882af417e7..bfd5cb6dad 100644 --- a/demux/demux_edl.c +++ b/demux/demux_edl.c @@ -46,7 +46,7 @@ struct tl_part { struct tl_parts { bool disable_chapters; - bool dash; + bool dash, no_clip; char *init_fragment_url; struct tl_part *parts; int num_parts; @@ -150,6 +150,8 @@ static struct tl_parts *parse_edl(bstr str) tl->dash = true; if (f_init.len) tl->init_fragment_url = bstrto0(tl, f_init); + } else if (bstr_equals0(f_type, "no_clip")) { + tl->no_clip = true; } else if (bstr_equals0(f_type, "new_stream")) { struct tl_parts *ntl = talloc_zero(tl, struct tl_parts); tl->next = ntl; @@ -238,6 +240,7 @@ static void build_timeline(struct timeline *tl, struct tl_parts *parts) { tl->track_layout = NULL; tl->dash = parts->dash; + tl->no_clip = parts->no_clip; if (parts->init_fragment_url && parts->init_fragment_url[0]) { MP_VERBOSE(tl, "Opening init fragment...\n"); |