Revision 1642cb6b libavformat/udp.c

View differences:

libavformat/udp.c
321 321
        udp_set_remote_url(h, uri);
322 322
    }
323 323

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

  
324 327
#ifndef CONFIG_IPV6
325 328
    udp_fd = socket(AF_INET, SOCK_DGRAM, 0);
326 329
    if (udp_fd < 0)
......
472 475
        udp_ipv6_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr);
473 476
#endif
474 477
    closesocket(s->udp_fd);
478
    ff_network_close();
475 479
    av_free(s);
476 480
    return 0;
477 481
}

Also available in: Unified diff