From patchwork Wed Nov 17 14:19:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gijs Peskens X-Patchwork-Id: 31461 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:d206:0:0:0:0:0 with SMTP id q6csp828885iob; Wed, 17 Nov 2021 06:20:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLYZ3ozVtrVMpthqpoIxiFpTSP/jxRhhY5E+UtjbeSB244W7TQWc+eSmT9DLc4TXENln+J X-Received: by 2002:a17:907:94c4:: with SMTP id dn4mr22004427ejc.512.1637158802846; Wed, 17 Nov 2021 06:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637158802; cv=none; d=google.com; s=arc-20160816; b=F8YHQAEEkgppC27/xog2KwEgOvZNX2iwAnM+35ixioX5O6iIC5G8/V9YBEyhMyULKw m5AKj6dYSo4J4u4kAABM4fPLi/Bb1j3kfrbpyF6AFRe9GBsOa+rDPEQx7HAKEv01TSwD MQmGgzvG6TAXBdXOMCibhrtut7tIyZJbpinwpV8RT8eiXoIKDkzUzUV5c5ZqVgyM7+h7 sIud7/PqnWyfPh6/XmzyQexXEUtAMgglXXsVMKeqRGx9jA84eS0PFVB9EDuzAVXJHiKt gy8HO285/CGe+1d85O2W/iTeZ/FM3iJAQzuWlrhoQtuwZgp5Rhqrf9lksZSYH4Kcr3pb gnLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=bmoQkW9Kh7pz088VdutHrYYK7bfBuFdki8k8Hllz+qU=; b=Gt71nt7HiEHdEBJmGVdQHAUF+CzKBv3MNcj6RO8tsNUNsKy6Nf/nV3/UUuCEmHKKWm YGkBWYL+GPF8A2kkfhoAy8pu8UccK1Qpj/Zm1gRM9XEqzZFhGhJLYHJ43Qin8kUGfzLy BMW807MPx0JZ13YdSdORoD7i4UlM86bTTNhk3BWK3BLBEg5JJDPOgEb1Q+i/zKkkyU/n r2hmRZ09Qjpl2JzCa2YTaKo1hTj8KastzF16qSF+eDQb76JFq/3VIc2LjFn+68Pc8KAI wlQlp7rk95eFD6jB1XREnh3tzvdcQCaw8gBFNhSSC/hVJJTNhMcXQK8wgUltH/X9GSXD GJnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@heteigenwijsje.nl header.s=dkim header.b=YbUbXw+u; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=peskens.net Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id sb42si63195900ejc.480.2021.11.17.06.20.01; Wed, 17 Nov 2021 06:20:02 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@heteigenwijsje.nl header.s=dkim header.b=YbUbXw+u; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=peskens.net Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E489168AE10; Wed, 17 Nov 2021 16:19:41 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtp.heteigenwijsje.nl (unknown [185.216.161.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4FEB168A636 for ; Wed, 17 Nov 2021 16:19:34 +0200 (EET) Received: from mail.heteigenwijsje.nl (localhost [127.0.0.1]) by smtp.heteigenwijsje.nl (Postfix) with ESMTP id 77ED79BA30 for ; Wed, 17 Nov 2021 15:15:10 +0100 (CET) Authentication-Results: mail.heteigenwijsje.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=heteigenwijsje.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= heteigenwijsje.nl; h=content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:to:from:from; s= dkim; t=1637158508; x=1639750509; bh=P+LK6cT+2Im/lRKd6cZvjtHshGy 1ek7RBFxBUnLPCRc=; b=YbUbXw+ucLd7pBeMQwae5Pd9JlS/X6SYY9UTgTN0MHa nLvAbGrV6Vfrbo9Atm6+eqrqV4rHZUl4jDqGo3tbQMel9Lz1RgM5Th56m0TnX4zW BxlP6EbO/jBW6e7T6pdBu+GZkoNeT0gYvpQ80FJva3fedO4FzKxkohPRZ6agQDLY = X-Virus-Scanned: amavisd-new at mail.heteigenwijsje.nl Received: from smtp.heteigenwijsje.nl ([127.0.0.1]) by mail.heteigenwijsje.nl (mail.heteigenwijsje.nl [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LDdSVGzFx9De for ; Wed, 17 Nov 2021 15:15:08 +0100 (CET) Received: from smtp.heteigenwijsje.nl (localhost [127.0.0.1]) by smtp.heteigenwijsje.nl (Postfix) with ESMTP id 2B28A9B265 for ; Wed, 17 Nov 2021 15:15:08 +0100 (CET) Received: from gijs-desktop.in2ip.nl ([94.208.100.217]) by smtp.heteigenwijsje.nl with ESMTPSA id 6BvGCGwOlWH2ygAAc3PRCQ (envelope-from ) for ; Wed, 17 Nov 2021 15:15:08 +0100 From: Gijs Peskens To: ffmpeg-devel@ffmpeg.org Date: Wed, 17 Nov 2021 15:19:28 +0100 Message-Id: <20211117141929.1164334-1-gijs@peskens.net> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] libRIST: Correctly initialize logging_settings X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: l2Ggi1t3NkZy Correct solution as suggested by Martin Balint on ffmpeg-devel --- libavformat/librist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/librist.c b/libavformat/librist.c index 6eae90cc2f..378b635ea7 100644 --- a/libavformat/librist.c +++ b/libavformat/librist.c @@ -130,6 +130,7 @@ static int librist_open(URLContext *h, const char *uri, int flags) if ((flags & AVIO_FLAG_READ_WRITE) == AVIO_FLAG_READ_WRITE) return AVERROR(EINVAL); + s->logging_settings = (struct rist_logging_settings)LOGGING_SETTINGS_INITIALIZER; ret = rist_logging_set(&logging_settings, s->log_level, log_cb, h, NULL, NULL); if (ret < 0) return risterr2ret(ret);