Revision 9261e6cf libavformat/rtsp.c

View differences:

libavformat/rtsp.c
132 132
        return;
133 133
    codec->codec_id          = handler->codec_id;
134 134
    rtsp_st->dynamic_handler = handler;
135
    if (handler->open)
136
        rtsp_st->dynamic_protocol_context = handler->open();
135
    if (handler->alloc)
136
        rtsp_st->dynamic_protocol_context = handler->alloc();
137 137
}
138 138

  
139 139
/* parse the rtpmap description: <codec_name>/<clock_rate>[/<other params>] */
......
526 526
        rtsp_st = rt->rtsp_streams[i];
527 527
        if (rtsp_st) {
528 528
            if (rtsp_st->dynamic_handler && rtsp_st->dynamic_protocol_context)
529
                rtsp_st->dynamic_handler->close(
529
                rtsp_st->dynamic_handler->free(
530 530
                    rtsp_st->dynamic_protocol_context);
531 531
            av_free(rtsp_st);
532 532
        }

Also available in: Unified diff