Module: libav
Branch: release/9
Commit: ec911d48086912e5988e254d515aa6da2ac62df7

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 866e55f..cf71de1 100644
--- a/libavformat/tls.c
+++ b/libavformat/tls.c
@@ -98,7 +98,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

Reply via email to