On 13/04/14 12:55, Martin Storsjö wrote: > 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: [email protected] > --- > libavformat/rtmpproto.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c > index 51381a4..bc6a4fe 100644 > --- a/libavformat/rtmpproto.c > +++ b/libavformat/rtmpproto.c > @@ -2555,7 +2555,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; > } > >
Set ok. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
