From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 686FD4AC7D for ; Wed, 17 Jul 2024 22:05:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 355F168DA54; Thu, 18 Jul 2024 01:05:45 +0300 (EEST) Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0EDEE68D859 for ; Thu, 18 Jul 2024 01:05:39 +0300 (EEST) Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-821eab936d6so64344241.3 for ; Wed, 17 Jul 2024 15:05:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721253937; x=1721858737; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JFw3MUvEj5Tgg+iovSAg4x1thCB2zqw0K+45lMm1HyI=; b=llQrXUKCZ/4csCnd5uG5ZPRbuc+QH8olRGkIbWy9lNRq4CjF8YdHT12M7lCOxznLJQ l9DxoEeuUXlMYK+dDssNAxqmRkHwHJeJAD5Sgf1t/iGuY/aHH5Ig1KcJi346+8Txhjuy k7uHggk1k4/S4ho3aT4+Ac4wO4vkh/NMNzC/TOJFYxwOY8ZwvBbHDxtogdUwWeVHuwlU SiuEJ/mIX0ijL4QuIGaxZ2o/cdEhLkSP6ZtaQN2D8wZoe0zGPfqC5QWdAFAKz74U1mJ2 PRR23FxtKN+mBsJfoex8lo+2olJ3UDRbn+I4hnoEvIzVlewMzK1Rdr7t5k8aLfbDGhiK pwug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721253937; x=1721858737; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JFw3MUvEj5Tgg+iovSAg4x1thCB2zqw0K+45lMm1HyI=; b=n4OLECU3jVs2eGiIQVuyXd7IRwIrG4TINVnkmrxFb0Hlsg3PnpfoERdVUFe2H/i7cc ST7CgV/SLFYYTUFoW8lISox7qCQHuWWbDTw+t8Lcl4BrBB3+3A8cUQQaHKfWr5HYNEq0 PWcG/xWhTVLALZFD6RNRqh7foevJLvUpwREWVQ1RagmAcgmmZ+V4N2q6TzsGsG74mcPd 8RwaNIw0+THEvt5b6XcDqlSXzs0XcXZFawXFkPfVlZg+qPtp0v1dI58LnZZT60+Y3LI1 NzzRW0CC8XaQNXzUYgNyUydvLEaWzr6doMhkQxN6dd55yJy0O/NysViRDKVlwXyWTBjI Dmjw== X-Gm-Message-State: AOJu0YxM2Anc6PLQnoeF1n2ou6z+rBDPOgiXi0QhnBPd0oX9/6qgowMY /QHLBoWhy/QMQv4wPVS/kWq8qY8/ZshTCQYEJuTpS2siwgv87AvvMGbJRA== X-Google-Smtp-Source: AGHT+IEB1YPGhMiTNgjv+ChJ6PcJWHGf1oV16u6eQXtKU6UOHvwWHKYvMEJ8kCaN/ZOszUm8RmV3ww== X-Received: by 2002:a05:6122:16a8:b0:4ef:630f:d579 with SMTP id 71dfb90a1353d-4f4df6e5d6amr3912684e0c.8.1721253936778; Wed, 17 Jul 2024 15:05:36 -0700 (PDT) Received: from cappuccino.. (syn-173-170-140-230.res.spectrum.com. [173.170.140.230]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-4f4d6f11181sm587572e0c.16.2024.07.17.15.05.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jul 2024 15:05:36 -0700 (PDT) From: Stephen Hutchinson To: ffmpeg-devel@ffmpeg.org Date: Wed, 17 Jul 2024 18:05:24 -0400 Message-ID: <20240717220524.8240-1-qyot27@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] avformat/avisynth: remove mutex lock from read_close 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 Cc: Stephen Hutchinson Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: Stephen Hutchinson --- After asking about this and testing with AviSynth+ 3.7.3 and AviSynth 2.6, it would appear that this isn't necessary. If it was to handle an edge case and said case reappears, it can be re-evaluated then. libavformat/avisynth.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 5d1ecc0bf6..e586fd8ce3 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -1085,11 +1085,7 @@ static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt) static av_cold int avisynth_read_close(AVFormatContext *s) { - if (ff_mutex_lock(&avisynth_mutex)) - return AVERROR_UNKNOWN; - avisynth_context_destroy(s->priv_data); - ff_mutex_unlock(&avisynth_mutex); return 0; } -- 2.43.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".