libavformat: Handle error return from ff_listen_bind
authorAnders Nystrom <anders.nystrom@southpole.se>
Thu, 9 Apr 2015 00:38:41 +0000 (02:38 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 9 Apr 2015 12:32:37 +0000 (14:32 +0200)
commit27852f2f1dec3749ea79883b70484c841169f747
tree2d05918162c4a5d6ead0dac3fe64f6d4ff5c5088
parent0266988ccd15436eaf5f7bb6f9509e6bfd5ce589
libavformat: Handle error return from ff_listen_bind

Handle error return from ff_listen_bind without leaking file descriptors.

Signed-off-by: Anders Nystrom <anders.nystrom@southpole.se>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/tcp.c
libavformat/unix.c