comparison rtsp.c @ 5865:80c95562a705 libavformat

Reindent
author mstorsjo
date Mon, 22 Mar 2010 15:07:36 +0000
parents 0ff0826b6c3d
children 754103ee76de
comparison
equal deleted inserted replaced
5864:0ff0826b6c3d 5865:80c95562a705
587 if (rt->lower_transport == RTSP_LOWER_TRANSPORT_TCP) { 587 if (rt->lower_transport == RTSP_LOWER_TRANSPORT_TCP) {
588 uint8_t *ptr; 588 uint8_t *ptr;
589 url_close_dyn_buf(rtpctx->pb, &ptr); 589 url_close_dyn_buf(rtpctx->pb, &ptr);
590 av_free(ptr); 590 av_free(ptr);
591 } else { 591 } else {
592 url_fclose(rtpctx->pb); 592 url_fclose(rtpctx->pb);
593 } 593 }
594 av_metadata_free(&rtpctx->streams[0]->metadata); 594 av_metadata_free(&rtpctx->streams[0]->metadata);
595 av_metadata_free(&rtpctx->metadata); 595 av_metadata_free(&rtpctx->metadata);
596 av_free(rtpctx->streams[0]); 596 av_free(rtpctx->streams[0]);
597 av_free(rtpctx); 597 av_free(rtpctx);
649 * codec parameters. */ 649 * codec parameters. */
650 av_free(rtpctx->streams[0]->codec); 650 av_free(rtpctx->streams[0]->codec);
651 rtpctx->streams[0]->codec = st->codec; 651 rtpctx->streams[0]->codec = st->codec;
652 652
653 if (handle) { 653 if (handle) {
654 url_fdopen(&rtpctx->pb, handle); 654 url_fdopen(&rtpctx->pb, handle);
655 } else 655 } else
656 url_open_dyn_packet_buf(&rtpctx->pb, RTSP_TCP_MAX_PACKET_SIZE); 656 url_open_dyn_packet_buf(&rtpctx->pb, RTSP_TCP_MAX_PACKET_SIZE);
657 ret = av_write_header(rtpctx); 657 ret = av_write_header(rtpctx);
658 658
659 if (ret) { 659 if (ret) {
660 if (handle) { 660 if (handle) {
661 url_fclose(rtpctx->pb); 661 url_fclose(rtpctx->pb);
662 } else { 662 } else {
663 uint8_t *ptr; 663 uint8_t *ptr;
664 url_close_dyn_buf(rtpctx->pb, &ptr); 664 url_close_dyn_buf(rtpctx->pb, &ptr);
665 av_free(ptr); 665 av_free(ptr);
666 } 666 }