| 352 | } |
| 353 | |
| 354 | static void free_representation(struct representation *pls) |
| 355 | { |
| 356 | free_fragment_list(pls); |
| 357 | free_timelines_list(pls); |
| 358 | free_fragment(&pls->cur_seg); |
| 359 | free_fragment(&pls->init_section); |
| 360 | av_freep(&pls->init_sec_buf); |
| 361 | av_freep(&pls->pb.pub.buffer); |
| 362 | ff_format_io_close(pls->parent, &pls->input); |
| 363 | if (pls->ctx) { |
| 364 | pls->ctx->pb = NULL; |
| 365 | avformat_close_input(&pls->ctx); |
| 366 | } |
| 367 | |
| 368 | av_freep(&pls->url_template); |
| 369 | av_freep(&pls->lang); |
| 370 | av_freep(&pls->id); |
| 371 | av_freep(&pls); |
| 372 | } |
| 373 | |
| 374 | static void free_video_list(DASHContext *c) |
| 375 | { |
no test coverage detected