diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 9a80c2f949..0b39b98124 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -2556,7 +2556,7 @@ reconnect: if ((ret = gen_connect(s, rt)) < 0) goto fail; } else { - if (read_connect(s, s->priv_data) < 0) + if ((ret = read_connect(s, s->priv_data)) < 0) goto fail; }