Commit 95bd5160 authored by kostya's avatar kostya

Do not send invokes to RTMP server if we are not connected to it.

Patch by Sergiy (server.connect("gmail.com").selectAddress("piratfm"))



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20745 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7b81987b
......@@ -706,8 +706,10 @@ static int rtmp_close(URLContext *h)
rt->flv_data = NULL;
if (rt->out_pkt.data_size)
ff_rtmp_packet_destroy(&rt->out_pkt);
if (rt->state > STATE_FCPUBLISH)
gen_fcunpublish_stream(h, rt);
}
if (rt->state > STATE_HANDSHAKED)
gen_delete_stream(h, rt);
av_freep(&rt->flv_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment