In retry_transfer_wrapper, do not check url_interrupt_cb, causes problems
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 4 Mar 2011 22:43:02 +0000 (23:43 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Mar 2011 01:09:44 +0000 (02:09 +0100)
commitaa612fbb99f6246913a789afde5a26f70c5a9159
tree27d2a368e67cd0a7b5b0d5f4e1d26aa45d2ee8ce
parenta2fc93f7005ee97cf17a07caac0f07f0537e2f59
In retry_transfer_wrapper, do not check url_interrupt_cb, causes problems
when writing and pressing q during encoding. Instead, check url_interrupt_cb
at the end.

Note that when a protocol is interrupted by url_interrupt_cb, some data may
be silently discarded: the protocol context is not suitable for anything
anymore.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 688c22e033a48ebf84fb4b52642bbd40f11e9c4e)
libavformat/avio.c