From patchwork Thu Jun 28 00:51:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Holljes X-Patchwork-Id: 9542 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:104:0:0:0:0:0 with SMTP id c4-v6csp1482132jad; Wed, 27 Jun 2018 17:57:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeup3VlmeGgDIeaKCQraa0uFnIWhqZyAUlOUJUNSGfqLLXyX2wPFnM8Aw2bGRAvHq75/NkJ X-Received: by 2002:a5d:4b0a:: with SMTP id v10-v6mr1000727wrq.87.1530147421843; Wed, 27 Jun 2018 17:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530147421; cv=none; d=google.com; s=arc-20160816; b=wC9U1MGezp+gYEGzbG55A5HA8ja/z7mCLPmgxt15HJGtj/e6MLHYQdVzWGe5EQXG4p tvNItcD2KN8LGRTdVh4nwEJ0Sn+zwSP94v2trPGQBbIt9J7dsIMHxpXl3vr85NeCN+FY xZZd/MxiYuG9qnJ1wvvR0emkfMOChzL1tdHSi4GrRzZ36xbszk3+4pJwrqfmC0frJ/Y0 IC5PFqwycPsZDe7cVB96ZIrt6xK7dXndYcGeBKR6/HxfODXPWkNoZ3RwdlAkMB7ElnUH sI9bQB2sGWlDde8agQCbrSfmLQ1M2dAdWoDOTX2PJT5/lPdc/vnhs9wZ06MqBKofiwfY vgHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=uPa94MrvohAe1sdtaBZSLLCRfE9ON+AEOiNBgQLjQfo=; b=dSI36hK6GUYHdEmZlrSdtwgdXWYSsEBwcznDw9MmOb99VFRNhZTZR287rA0vAwmDmN QOOnlGUKYP6LQGbxywbJ31dG/THoioFJXFDxMqoulc/BSxIAmy3Vdt7cEX3ZdWA/Es+I 72mAIyqsj6gAOkysYu4J+0tNpOmA+jkqAlmZ8QzqMZH+GSbw/bj5s/Hq+JNz7bp25UkB dTlyf8V6KXpYeyQXIvfZHBvLuw64dDlHV2c6m5TV0+dfUyqZ+nHFxtgZZd+iWDifq7xj 1aEeUCwmu1xgmIgAOREAfxm/uqoEoyW5NX03uahLi/1JAEiih/wXR8YOipm33nhqz9Fc ijkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@googlemail.com header.s=20161025 header.b=GKECPfj4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id v81-v6si4764871wmb.167.2018.06.27.17.57.01; Wed, 27 Jun 2018 17:57:01 -0700 (PDT) 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=@googlemail.com header.s=20161025 header.b=GKECPfj4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C7A5168A4B0; Thu, 28 Jun 2018 03:56:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CA88768A320 for ; Thu, 28 Jun 2018 03:56:52 +0300 (EEST) Received: by mail-wr0-f195.google.com with SMTP id e18-v6so3722236wrs.5 for ; Wed, 27 Jun 2018 17:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=clJlYtJmpDp/7slj9KTOovxPlUWYRlNG7Ibvum+Wid4=; b=GKECPfj4XiaEqbm6NNIyX3wrp7luutANYQ7Tm3PsWXiEHtf8qdyAVw5uJ9TFpy7RzB 6YyxtAScxGIMGefjm0Pa28cCE60hu28lpcnJSesapeeu35pmXTugT7Rh6CFLjt4mmx59 seBq1mXvanOUbwqHku7Q6PoFCTZITlezMZlp8tzt+x7v3TZVolMUCwMy2Ls/4/T7MX3D SaJO4MGb9b9WrJSeO2KChrBasOebQ2uJUJtKNh6aXZSK7Cb79hH1p9fzm8PxovhnwUeI dawbCDgO7sYsyN8EaHz2SM0EmY539bv1wficLO8wLiCFD8OZC/qTKz8vZaLwhNyXxeNK jtNw== 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=clJlYtJmpDp/7slj9KTOovxPlUWYRlNG7Ibvum+Wid4=; b=aobxAhimqiF/lwoQ6s5dRtAbyDGnmLkctHgdWW3rllmAAo4Cewye5J5Bi7NKkiOvhp K+BTEd064WPHAeYQZuKhq8vW6ZJKPAgUVCTHtNvfbcO+gasWqn4ei6qZQ+WGMOARcFwJ hcar/39Nrtk5g5Jzx1i6BWm1N13ar+fKHDVfq6aGpy9KURGWccbVwehnU+eFp5ZPB1oY UQj8yO5+DLOtOMK51C7rHumvMD/VRd+4P78PwsAqEculsCqxJ2Ittz8r6NflGPXxkzUM jOl88e7BgX6yVswXVlGToWoNoYFoiiPb1qIy2bs+BHXwOZZUvL09hb97MM3KWzSbwQK3 UiZQ== X-Gm-Message-State: APt69E0EUJs6dFUmnBaQKfNWjCLIrzG/GT5aNAVF2fygoDT3PudTSV5g 1sKIMXZw96aXwZWlqZO0X36ggA== X-Received: by 2002:adf:a0c2:: with SMTP id n2-v6mr7088012wrn.23.1530147086649; Wed, 27 Jun 2018 17:51:26 -0700 (PDT) Received: from localhost.localdomain ([46.5.2.0]) by smtp.gmail.com with ESMTPSA id a9-v6sm1363017wrq.1.2018.06.27.17.51.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 17:51:25 -0700 (PDT) From: Stephan Holljes To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Jun 2018 02:51:01 +0200 Message-Id: <20180628005117.18902-2-klaxa1337@googlemail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180628005117.18902-1-klaxa1337@googlemail.com> References: <20180628005117.18902-1-klaxa1337@googlemail.com> Subject: [FFmpeg-devel] [PATCH 01/17] publisher.c: Redruce threads to 1 for now to avoid race conditions 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: Stephan Holljes MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Stephan Holljes --- publisher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publisher.c b/publisher.c index 56d1e24..fc3d804 100644 --- a/publisher.c +++ b/publisher.c @@ -101,7 +101,7 @@ void publisher_init(struct PublisherContext **pub, char *stream_name) av_log(NULL, AV_LOG_ERROR, "Could not allocate publisher context.\n"); return; } - pc->nb_threads = 8; + pc->nb_threads = 1; pc->stream_name = stream_name; pc->current_segment_id = -1; pc->shutdown = 0;