The retry_transfer_wrapper function higher up in the call chain ignores AVERROR(EINTR), which only means "interrupted by system call".
This makes sure that returning due to the interrupt callback works as intended. CC: [email protected] --- This fix is only relevant for the release branch 11 and earlier; this issue is no longer present in the current git master. --- libavformat/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/tls.c b/libavformat/tls.c index 7c78fda..3b00cb5 100644 --- a/libavformat/tls.c +++ b/libavformat/tls.c @@ -132,7 +132,7 @@ static int do_tls_poll(URLContext *h, int ret) if (n > 0) break; if (ff_check_interrupt(&h->interrupt_callback)) - return AVERROR(EINTR); + return AVERROR_EXIT; } return 0; } -- 2.6.4 (Apple Git-63) _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
