Revision dce37564 libavformat/rtmpproto.c

View differences:

libavformat/rtmpproto.c
487 487
    client_pos = rtmp_handshake_imprint_with_digest(tosend + 1);
488 488

  
489 489
    url_write(rt->stream, tosend, RTMP_HANDSHAKE_PACKET_SIZE + 1);
490
    i = url_read_complete(rt->stream, serverdata, RTMP_HANDSHAKE_PACKET_SIZE + 1);
490
    i = ffurl_read_complete(rt->stream, serverdata, RTMP_HANDSHAKE_PACKET_SIZE + 1);
491 491
    if (i != RTMP_HANDSHAKE_PACKET_SIZE + 1) {
492 492
        av_log(LOG_CONTEXT, AV_LOG_ERROR, "Cannot read RTMP handshake response\n");
493 493
        return -1;
494 494
    }
495
    i = url_read_complete(rt->stream, clientdata, RTMP_HANDSHAKE_PACKET_SIZE);
495
    i = ffurl_read_complete(rt->stream, clientdata, RTMP_HANDSHAKE_PACKET_SIZE);
496 496
    if (i != RTMP_HANDSHAKE_PACKET_SIZE) {
497 497
        av_log(LOG_CONTEXT, AV_LOG_ERROR, "Cannot read RTMP handshake response\n");
498 498
        return -1;

Also available in: Unified diff