Module: libav Branch: release/10 Commit: c0fd077aad8bc5a5651af4aaca504272d379c73f
Author: Martin Storsjö <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Thu Mar 24 11:27:49 2016 +0200 tls: Use the right return value for breaking out due to the interrupt callback 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] Signed-off-by: Martin Storsjö <[email protected]> --- libavformat/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/tls.c b/libavformat/tls.c index 1baecf4..522962e 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; } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
