Revision c76374c6 libavformat/tcp.c

View differences:

libavformat/tcp.c
73 73
    if (ret < 0) {
74 74
        struct pollfd p = {fd, POLLOUT, 0};
75 75
        if (ff_neterrno() == AVERROR(EINTR)) {
76
            if (url_interrupt_cb())
76
            if (url_interrupt_cb()) {
77
                ret = AVERROR_EXIT;
77 78
                goto fail1;
79
            }
78 80
            goto redo;
79 81
        }
80 82
        if (ff_neterrno() != AVERROR(EINPROGRESS) &&
......
84 86
        /* wait until we are connected or until abort */
85 87
        for(;;) {
86 88
            if (url_interrupt_cb()) {
87
                ret = AVERROR(EINTR);
89
                ret = AVERROR_EXIT;
88 90
                goto fail1;
89 91
            }
90 92
            ret = poll(&p, 1, 100);

Also available in: Unified diff