Revision f87b1b37 libavformat/rtmpproto.c

View differences:

libavformat/rtmpproto.c
812 812
    if (!rt)
813 813
        return AVERROR(ENOMEM);
814 814
    s->priv_data = rt;
815
    rt->is_input = !(flags & URL_WRONLY);
815
    rt->is_input = !(flags & AVIO_WRONLY);
816 816

  
817 817
    av_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), &port,
818 818
                 path, sizeof(path), s->filename);
......
821 821
        port = RTMP_DEFAULT_PORT;
822 822
    ff_url_join(buf, sizeof(buf), "tcp", NULL, hostname, port, NULL);
823 823

  
824
    if (ffurl_open(&rt->stream, buf, URL_RDWR) < 0) {
824
    if (ffurl_open(&rt->stream, buf, AVIO_RDWR) < 0) {
825 825
        av_log(LOG_CONTEXT, AV_LOG_ERROR, "Cannot open connection %s\n", buf);
826 826
        goto fail;
827 827
    }

Also available in: Unified diff