Revision 615c2879

View differences:

libavformat/rtmpproto.c
706 706
        rt->flv_data = NULL;
707 707
        if (rt->out_pkt.data_size)
708 708
            ff_rtmp_packet_destroy(&rt->out_pkt);
709
        gen_fcunpublish_stream(h, rt);
709
        if (rt->state > STATE_FCPUBLISH)
710
            gen_fcunpublish_stream(h, rt);
710 711
    }
711
    gen_delete_stream(h, rt);
712
    if (rt->state > STATE_HANDSHAKED)
713
        gen_delete_stream(h, rt);
712 714

  
713 715
    av_freep(&rt->flv_data);
714 716
    url_close(rt->stream);

Also available in: Unified diff