if (reply->status_code == 461 /* Unsupported protocol */ && i == 0) {
err = 1;
goto fail;
- } else
- if (reply->status_code != RTSP_STATUS_OK ||
- reply->nb_transports != 1) {
+ } else if (reply->status_code != RTSP_STATUS_OK ||
+ reply->nb_transports != 1) {
err = AVERROR_INVALIDDATA;
goto fail;
}
err = make_setup_request(s, host, port, protocol);
if (err < 0)
- goto fail;
+ goto fail;
protocol_mask &= ~(1 << protocol);
if (protocol_mask == 0 && err == 1) {
err = AVERROR(EPROTONOSUPPORT);