From patchwork Sat Jul 18 11:56:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 21166 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 190CF447829 for ; Sat, 18 Jul 2020 14:56:44 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 03F7268B76A; Sat, 18 Jul 2020 14:56:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B8F8968B757 for ; Sat, 18 Jul 2020 14:56:36 +0300 (EEST) Received: by mail-wm1-f65.google.com with SMTP id f139so20910250wmf.5 for ; Sat, 18 Jul 2020 04:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XpojcvxxEST9yM/+5VThOUOgcnKNYRTyxq2l8HQfJXs=; b=fva2v2U+Bnfs22VEXqzjhl6KVixOhUxHgYLRv28TLlpH34ycDlbLdmwkXTdc6Vn/R7 DJ9l4FpYYdC62xDub5ZDthdVSg2Y1HRaS2L0M6v4QMZseLg0wUb01/q3lcTz0hsEXOxV UpOU+Kc7sbWwZK2x+RcU3IUFynfbl5evxm/BopfU5Fv0wbWSpULjvmNk4j0qF/C1iHni aVEcpPvprBjgrZIQwpeddvnr5YeV9bJw+qbuVP4dJGlWFEFG+E4IGy1jeMGgcKQ2edEU QStfPX5hLq07XAPMXpKEvPKgV63IQdE6xWElu9aOrfBkR6FyfHb38NwJXleQ6u8qgZBf vIjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XpojcvxxEST9yM/+5VThOUOgcnKNYRTyxq2l8HQfJXs=; b=UlvtZja9DINujlUURuas6N+p+nR/xM9jME06asKL94XxzT84/o5Ba5JV5gXPJIqFfU zZBKg44AjYMI63QHZSaS0Nt55cr51mAlAQRLfngiQBSvhs1xa0huUIBg/P2YIIZsgG7C 6MRBiMWj2koWOTkU5usS9AzqLLMOX4GMbSDudAALzK+De78OwhWlzzyhnviKiwg648zx gr9TGLIExPye7ELpw84MICppWiGXMihql+yK3kDQGBaCr2M+qJvU5LY+U1Xd5M7Tl08k pyFR2hFbDNgy4AlEahMNZpqLEkkipdbDDkd2cJTcmoxWnmZxPTuMZT6pwZYKhTro3W75 OAsA== X-Gm-Message-State: AOAM530gVoUS3VECGE8qZ/KWcss1J+oNPDQAygAQzfPfp7PF5OmMtJHx t7PYDo1KpuueWRG3nt2BkGfDFH8y X-Google-Smtp-Source: ABdhPJx3ii/0wUX47WbHf9pKhNE5DNj6mWgyLanNl73r6pBk4AEJGpViKoziJjloPtVGRkeNxP7+ew== X-Received: by 2002:a1c:2602:: with SMTP id m2mr14096818wmm.50.1595073396173; Sat, 18 Jul 2020 04:56:36 -0700 (PDT) Received: from localhost.localdomain ([49.51.162.193]) by smtp.gmail.com with ESMTPSA id 68sm20015591wmz.40.2020.07.18.04.56.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 04:56:35 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 18 Jul 2020 19:56:24 +0800 Message-Id: <1595073385-29007-2-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595073385-29007-1-git-send-email-mypopydev@gmail.com> References: <1595073385-29007-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/3] lavf/hls: enable custom interrup callback in sub-demuxer X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao Enable the custom callback in sub-demuxer Signed-off-by: Jun Zhao --- libavformat/hls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index ba17c4e..cf0b71d 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -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);