rtmpproto: Make sure to pass on the error code if read_connect failed
authorMartin Storsjö <martin@martin.st>
Sun, 13 Apr 2014 10:44:03 +0000 (13:44 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 14 Apr 2014 08:09:20 +0000 (11:09 +0300)
commit6477139721f559b26eafd415e23e13ea2b0c27e1
tree56d99212645ef0a9493f4e63ee0f739478ac128f
parent0f524b6c690962d7ebbd59ded74288e1e9b0f009
rtmpproto: Make sure to pass on the error code if read_connect failed

Previously, if read_connect failed, the ret variable was unmodified
and had the value 0, indicating success, which then was returned from
the rtmp_open function, even though it actually failed.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c