currently, av_open_input_file() opens protocols without the AVIO_FLAG_NONBLOCK flag. I suggest that av_open_input_file() respect the AVFMT_FLAG_NONBLOCK flag by calling avio_open() with AVIO_FLAG_NONBLOCK flag whenever AVFMT_FLAG_NONBLOCK is set.
specifically (from libavformat/utils.c) : if (!fmt || !(fmt->flags & AVFMT_NOFILE)) { /* if no file needed do not try to open one */ + int flags = AVIO_FLAG_READ | (fmt->flags & AVFMT_FLAG_NONBLOCK)? AVIO_FLAG_NONBLOCK : 0; - if ((err=avio_open(&pb, filename, AVIO_FLAG_READ)) < 0) { + if ((err=avio_open(&pb, filename, flags)) < 0) { goto fail; } -- Aviad Rozenhek
_______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel