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>
(cherry picked from commit 6477139721
)
This commit is contained in:

committed by
Sean McGovern

parent
dccac759d3
commit
b77819afbc
@@ -2443,7 +2443,7 @@ reconnect:
|
|||||||
if ((ret = gen_connect(s, rt)) < 0)
|
if ((ret = gen_connect(s, rt)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
} else {
|
} else {
|
||||||
if (read_connect(s, s->priv_data) < 0)
|
if ((ret = read_connect(s, s->priv_data)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
rt->is_input = 1;
|
rt->is_input = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user