Mercurial > libavformat.hg
comparison rtmpproto.c @ 5419:006c95a7a3d2 libavformat
Do not send invokes to RTMP server if we are not connected to it.
Patch by Sergiy (server.connect("gmail.com").selectAddress("piratfm"))
author | kostya |
---|---|
date | Sun, 06 Dec 2009 07:01:37 +0000 |
parents | 9d7de5529047 |
children | 62329840eb7c |
comparison
equal
deleted
inserted
replaced
5418:58fb1f12d94f | 5419:006c95a7a3d2 |
---|---|
704 | 704 |
705 if(!rt->is_input) { | 705 if(!rt->is_input) { |
706 rt->flv_data = NULL; | 706 rt->flv_data = NULL; |
707 if (rt->out_pkt.data_size) | 707 if (rt->out_pkt.data_size) |
708 ff_rtmp_packet_destroy(&rt->out_pkt); | 708 ff_rtmp_packet_destroy(&rt->out_pkt); |
709 gen_fcunpublish_stream(h, rt); | 709 if (rt->state > STATE_FCPUBLISH) |
710 } | 710 gen_fcunpublish_stream(h, rt); |
711 gen_delete_stream(h, rt); | 711 } |
712 if (rt->state > STATE_HANDSHAKED) | |
713 gen_delete_stream(h, rt); | |
712 | 714 |
713 av_freep(&rt->flv_data); | 715 av_freep(&rt->flv_data); |
714 url_close(rt->stream); | 716 url_close(rt->stream); |
715 av_free(rt); | 717 av_free(rt); |
716 return 0; | 718 return 0; |