Revision 8c579c1c libavformat/rtsp.c

View differences:

libavformat/rtsp.c
1111 1111
            rt->transport = reply->transports[0].transport;
1112 1112
        }
1113 1113

  
1114
        /* close RTP connection if not chosen */
1115
        if (reply->transports[0].lower_transport != RTSP_LOWER_TRANSPORT_UDP &&
1116
            (lower_transport == RTSP_LOWER_TRANSPORT_UDP)) {
1117
            url_close(rtsp_st->rtp_handle);
1118
            rtsp_st->rtp_handle = NULL;
1114
        /* Fail if the server responded with another lower transport mode
1115
         * than what we requested. */
1116
        if (reply->transports[0].lower_transport != lower_transport) {
1117
            av_log(s, AV_LOG_ERROR, "Nonmatching transport in server reply\n");
1118
            err = AVERROR_INVALIDDATA;
1119
            goto fail;
1119 1120
        }
1120 1121

  
1121 1122
        switch(reply->transports[0].lower_transport) {

Also available in: Unified diff