| 261 | } |
| 262 | |
| 263 | static void finalize_rtp_handler_init(AVFormatContext *s, RTSPStream *rtsp_st, |
| 264 | AVStream *st) |
| 265 | { |
| 266 | if (rtsp_st->dynamic_handler && rtsp_st->dynamic_handler->init) { |
| 267 | int ret = rtsp_st->dynamic_handler->init(s, st ? st->index : -1, |
| 268 | rtsp_st->dynamic_protocol_context); |
| 269 | if (ret < 0) { |
| 270 | if (rtsp_st->dynamic_protocol_context) { |
| 271 | if (rtsp_st->dynamic_handler->close) |
| 272 | rtsp_st->dynamic_handler->close( |
| 273 | rtsp_st->dynamic_protocol_context); |
| 274 | av_free(rtsp_st->dynamic_protocol_context); |
| 275 | } |
| 276 | rtsp_st->dynamic_protocol_context = NULL; |
| 277 | rtsp_st->dynamic_handler = NULL; |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | #if CONFIG_RTSP_DEMUXER |
| 283 | static int init_satip_stream(AVFormatContext *s) |
no test coverage detected