Changeset 55815edc in ffmpeg

Timestamp:
Apr 19, 2011, 5:48:07 PM (14 years ago)
Author:
Anton Khirnov <anton@khirnov.net>
Branches:
master
Children:
cda7aa9e
Parents:
59d96941
git-author:
Stefano Sabatini <stefano.sabatini-lala@poste.it> (04/08/11 23:32:37)
git-committer:
Anton Khirnov <anton@khirnov.net> (04/19/11 17:48:07)
Message:

prefer avio_check() over url_exist()

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 without attempting to open it,
thus avoiding the lock.

Fix issue #1663.

Signed-off-by: Anton Khirnov <anton@khirnov.net>

(No files)

Note: See TracChangeset for help on using the changeset viewer.