From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTP id 3513A44CA1
	for <ffmpegdev@gitmailbox.com>; Mon, 14 Nov 2022 16:22:28 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E82C268BCFA;
	Mon, 14 Nov 2022 18:22:26 +0200 (EET)
Received: from nef.ens.fr (nef2.ens.fr [129.199.96.40])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A24CA68BBD2
 for <ffmpeg-devel@ffmpeg.org>; Mon, 14 Nov 2022 18:22:20 +0200 (EET)
X-ENS-nef-client: 129.199.129.80 ( name = phare.normalesup.org )
Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80])
 by nef.ens.fr (8.14.4/1.01.28121999) with ESMTP id 2AEGMJHM030765
 for <ffmpeg-devel@ffmpeg.org>; Mon, 14 Nov 2022 17:22:20 +0100
Received: by phare.normalesup.org (Postfix, from userid 1001)
 id BE48FE0082; Mon, 14 Nov 2022 17:22:19 +0100 (CET)
Date: Mon, 14 Nov 2022 17:22:19 +0100
From: Nicolas George <george@nsup.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Message-ID: <Y3JrO3wRxc742t13@phare.normalesup.org>
References: <20221110122827.GZ1814017@pb2>
 <166808350478.1198.18430086573897178566@lain.khirnov.net>
 <20221110195233.GD1814017@pb2>
 <166841783339.20155.4932866616536129385@lain.khirnov.net>
 <Y3IcJ9C0tOcsY194@phare.normalesup.org>
 <166842362057.1198.1696144982339639186@lain.khirnov.net>
 <Y3Ig5pJbwXBc/YuR@phare.normalesup.org>
 <166842433148.1198.8905140066618095314@lain.khirnov.net>
 <Y3I3Q8UN3YP8UE3E@phare.normalesup.org>
 <166844265631.20155.948969597059127549@lain.khirnov.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <166844265631.20155.948969597059127549@lain.khirnov.net>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3
 (nef.ens.fr [129.199.96.32]); Mon, 14 Nov 2022 17:22:20 +0100 (CET)
Subject: Re: [FFmpeg-devel] [PATCH 2/5] lavf/demux: treat EAGAIN as REDO
 unless AVFMT_FLAG_NONBLOCK is set
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/Y3JrO3wRxc742t13@phare.normalesup.org/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>

Anton Khirnov (12022-11-14):
> You wrote a whole lot of text and I don't see how any of it applies to
> this patch.
> 
> The standard convention everywhere is that IO may return EAGAIN in
> non-blocking mode and blocks otherwise. And that is exactly what this
> patch implements.

To implement blocking on top of EAGAIN, a sleep is necessary.

REDO must not sleep.

-- 
  Nicolas George
_______________________________________________
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".