Re: [libav-devel] [PATCH 1/3] tls: Use custom IO to read from the URLContext

2015-05-21 Thread Martin Storsjö
On Thu, 21 May 2015, wm4 wrote: On Thu, 21 May 2015 16:08:59 +0300 Martin Storsjö mar...@martin.st wrote: This avoids hijacking the fd, by reading using the normal URLContext functions instead. This allowing reading data that has been buffered in the underlying URLContext. This avoids using

[libav-devel] [PATCH 1/3] tls: Use custom IO to read from the URLContext

2015-05-21 Thread Martin Storsjö
This avoids hijacking the fd, by reading using the normal URLContext functions instead. This allowing reading data that has been buffered in the underlying URLContext. This avoids using the libraries own send functions that can cause SIGPIPE. The fd is still needed for polling the lowlevel

Re: [libav-devel] [PATCH 1/3] tls: Use custom IO to read from the URLContext

2015-05-21 Thread wm4
On Thu, 21 May 2015 16:08:59 +0300 Martin Storsjö mar...@martin.st wrote: This avoids hijacking the fd, by reading using the normal URLContext functions instead. This allowing reading data that has been buffered in the underlying URLContext. This avoids using the libraries own send

Re: [libav-devel] [PATCH 1/3] tls: Use custom IO to read from the URLContext

2015-05-21 Thread wm4
On Thu, 21 May 2015 22:07:39 +0300 (EEST) Martin Storsjö mar...@martin.st wrote: On Thu, 21 May 2015, Martin Storsjö wrote: On Thu, 21 May 2015, wm4 wrote: On Thu, 21 May 2015 16:08:59 +0300 Martin Storsjö mar...@martin.st wrote: This avoids hijacking the fd, by reading using the

Re: [libav-devel] [PATCH 1/3] tls: Use custom IO to read from the URLContext

2015-05-21 Thread Martin Storsjö
On Thu, 21 May 2015, Martin Storsjö wrote: On Thu, 21 May 2015, wm4 wrote: On Thu, 21 May 2015 16:08:59 +0300 Martin Storsjö mar...@martin.st wrote: This avoids hijacking the fd, by reading using the normal URLContext functions instead. This allowing reading data that has been buffered in