Revision 814c5641 libavformat/udp.c

View differences:

libavformat/udp.c
320 320

  
321 321
    is_output = (flags & URL_WRONLY);
322 322

  
323
    if(!ff_network_init())
324
        return AVERROR(EIO);
325

  
326 323
    s = av_mallocz(sizeof(UDPContext));
327 324
    if (!s)
328 325
        return AVERROR(ENOMEM);
......
482 479
    if (s->is_multicast && !(h->flags & URL_WRONLY))
483 480
        udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr);
484 481
    closesocket(s->udp_fd);
485
    ff_network_close();
486 482
    av_free(s);
487 483
    return 0;
488 484
}

Also available in: Unified diff