Revision 52aa4338

View differences:

libavformat/rtsp.c
572 572
}
573 573

  
574 574
/* close and free RTSP streams */
575
static void rtsp_close_streams(RTSPState *rt)
575
static void rtsp_close_streams(AVFormatContext *s)
576 576
{
577
    RTSPState *rt = s->priv_data;
577 578
    int i;
578 579
    RTSPStream *rtsp_st;
579 580

  
......
1421 1422
    }
1422 1423
    return 0;
1423 1424
 fail:
1424
    rtsp_close_streams(rt);
1425
    rtsp_close_streams(s);
1425 1426
    av_freep(&content);
1426 1427
    url_close(rt->rtsp_hd);
1427 1428
    if (reply->status_code >=300 && reply->status_code < 400) {
......
1759 1760
             s->filename);
1760 1761
    rtsp_send_cmd_async(s, cmd);
1761 1762

  
1762
    rtsp_close_streams(rt);
1763
    rtsp_close_streams(s);
1763 1764
    url_close(rt->rtsp_hd);
1764 1765
    return 0;
1765 1766
}
......
1839 1840
    }
1840 1841
    return 0;
1841 1842
fail:
1842
    rtsp_close_streams(rt);
1843
    rtsp_close_streams(s);
1843 1844
    return err;
1844 1845
}
1845 1846

  
1846 1847
static int sdp_read_close(AVFormatContext *s)
1847 1848
{
1848
    RTSPState *rt = s->priv_data;
1849
    rtsp_close_streams(rt);
1849
    rtsp_close_streams(s);
1850 1850
    return 0;
1851 1851
}
1852 1852

  

Also available in: Unified diff