]> git.sesse.net Git - ffmpeg/commitdiff
lavf/dashdec: enable custom interrup callback in sub-demuxer
authorJun Zhao <barryjzhao@tencent.com>
Sat, 18 Jul 2020 11:45:55 +0000 (19:45 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Mon, 20 Jul 2020 11:23:15 +0000 (19:23 +0800)
Enable the custom callback in sub-demuxer

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavformat/dashdec.c

index 694782c820b3f218b269f2f608c146909762beba..c5a5ff607bf5cfe59976aec269793f742cf8312a 100644 (file)
@@ -1943,6 +1943,7 @@ static int reopen_demux_for_component(AVFormatContext *s, struct representation
     pls->ctx->flags = AVFMT_FLAG_CUSTOM_IO;
     pls->ctx->probesize = s->probesize > 0 ? s->probesize : 1024 * 4;
     pls->ctx->max_analyze_duration = s->max_analyze_duration > 0 ? s->max_analyze_duration : 4 * AV_TIME_BASE;
+    pls->ctx->interrupt_callback = s->interrupt_callback;
     ret = av_probe_input_buffer(&pls->pb, &in_fmt, "", NULL, 0, 0);
     if (ret < 0) {
         av_log(s, AV_LOG_ERROR, "Error when loading first fragment, playlist %d\n", (int)pls->rep_idx);