|
|
@@ -209,7 +209,7 @@ static int tls_read(URLContext *h, uint8_t *buf, int size) |
|
|
if (ret > 0) |
|
|
if (ret > 0) |
|
|
return ret; |
|
|
return ret; |
|
|
if (ret == 0) |
|
|
if (ret == 0) |
|
|
return AVERROR(EIO); |
|
|
|
|
|
|
|
|
return AVERROR_EOF; |
|
|
if ((ret = do_tls_poll(h, ret)) < 0) |
|
|
if ((ret = do_tls_poll(h, ret)) < 0) |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
@@ -224,7 +224,7 @@ static int tls_write(URLContext *h, const uint8_t *buf, int size) |
|
|
if (ret > 0) |
|
|
if (ret > 0) |
|
|
return ret; |
|
|
return ret; |
|
|
if (ret == 0) |
|
|
if (ret == 0) |
|
|
return AVERROR(EIO); |
|
|
|
|
|
|
|
|
return AVERROR_EOF; |
|
|
if ((ret = do_tls_poll(h, ret)) < 0) |
|
|
if ((ret = do_tls_poll(h, ret)) < 0) |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
|