summaryrefslogtreecommitdiffstats
path: root/demux/timeline.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-18 15:48:14 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commitf9713921a372aa14ea631b0c546d3fbeade32b71 (patch)
treed3a8b403fe6272f5b89e27f82cd210e05d82aa56 /demux/timeline.c
parenta0cce7f775e97aa364d166c278c49df1325e6cc7 (diff)
downloadmpv-f9713921a372aa14ea631b0c546d3fbeade32b71.tar.bz2
mpv-f9713921a372aa14ea631b0c546d3fbeade32b71.tar.xz
demux: add a "cancel" field
Instead of relying on demuxer->stream->cancel. This is better because the stream is potentially closed and replaced.
Diffstat (limited to 'demux/timeline.c')
-rw-r--r--demux/timeline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/timeline.c b/demux/timeline.c
index 700a6dfd05..c53170b623 100644
--- a/demux/timeline.c
+++ b/demux/timeline.c
@@ -14,7 +14,7 @@ struct timeline *timeline_load(struct mpv_global *global, struct mp_log *log,
*tl = (struct timeline){
.global = global,
.log = log,
- .cancel = demuxer->stream->cancel,
+ .cancel = demuxer->cancel,
.demuxer = demuxer,
.track_layout = demuxer,
};