rtmpproto: Make sure to pass on the error code if read_connect failed
[ffmpeg.git] / libavformat / rtmpproto.c
index 51381a4..bc6a4fe 100644 (file)
@@ -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;
     }