Re: [libav-devel] [PATCH 33/34] prefer avio_check() over url_exist()

2011-04-18 Thread Ronald S. Bultje
Hi, On Mon, Apr 18, 2011 at 3:03 AM, Anton Khirnov wrote: > From: Stefano Sabatini > > The problem with url_exist() is that it tries to open a resource in > RDONLY mode. If the file is a FIFO and there is already a reading > client, the open() call will hang. > > By using avio_check() with acces

[libav-devel] [PATCH 33/34] prefer avio_check() over url_exist()

2011-04-18 Thread Anton Khirnov
From: Stefano Sabatini The problem with url_exist() is that it tries to open a resource in RDONLY mode. If the file is a FIFO and there is already a reading client, the open() call will hang. By using avio_check() with access mode of 0, the second reading process will check if the file exists wi