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

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

index ba17c4ed965c84a90cab52bbdeab66d706108e1e..cf0b71d65dccbbaf5ba941e51e348bffaf3862f6 100644 (file)
@@ -1984,6 +1984,7 @@ static int hls_read_header(AVFormatContext *s)
                           read_data, NULL, NULL);
         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;
         url = av_strdup(pls->segments[0]->url);
         ret = av_probe_input_buffer(&pls->pb, &in_fmt, url, NULL, 0, 0);
         av_free(url);