aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-03-16 08:14:23 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2017-12-01 03:37:42 +0100
commit69ce4fe4369fb996516a239e0382e443f160a6f0 (patch)
tree33df309d3aac0d82b959e6eb05aa21f5e5c34aca /src
parent5f90332ae39cf4f46f9a7ed85b277be2a5eae5fb (diff)
Fixed problem of mute audio on some calls
When reading from RTP socket, the first read() may fail right after connecting to remote socket. Subsequent read() will work as it should. I have not checked why this read fails, but I don't see any reason why we should stop reading, just because one read() fails at the beginning.
Diffstat (limited to 'src')
-rw-r--r--src/libtrau/rtp_proxy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libtrau/rtp_proxy.c b/src/libtrau/rtp_proxy.c
index 92086ed1f..7d6375e55 100644
--- a/src/libtrau/rtp_proxy.c
+++ b/src/libtrau/rtp_proxy.c
@@ -484,10 +484,8 @@ static int rtp_socket_read(struct rtp_socket *rs, struct rtp_sub_socket *rss)
return -ENOMEM;
rc = read(rss->bfd.fd, msg->data, RTP_ALLOC_SIZE);
- if (rc <= 0) {
- rss->bfd.when &= ~BSC_FD_READ;
+ if (rc <= 0)
return rc;
- }
msgb_put(msg, rc);