aboutsummaryrefslogtreecommitdiffstats
path: root/src/trau/osmo_ortp.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-10-18 23:01:53 +0200
committerlaforge <laforge@osmocom.org>2021-02-08 17:20:44 +0000
commit949b8a22b05b55135a47f0eabf3bfb8dffa6b7d0 (patch)
treee6b193a302cbc16db2c9ed5d9bebebd82c15d417 /src/trau/osmo_ortp.c
parent8c724c05517e5cb125599550ee5f6d43a04bbe69 (diff)
migrate to osmo_fd_{read,write}_{enable,disable}()
Diffstat (limited to 'src/trau/osmo_ortp.c')
-rw-r--r--src/trau/osmo_ortp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index 6e91f8d..d105ca8 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -218,7 +218,7 @@ static int osmo_rtp_fd_cb(struct osmo_fd *fd, unsigned int what)
if (what & OSMO_FD_READ) {
/* in polling mode, we don't want to be called here */
if (rs->flags & OSMO_RTP_F_POLL) {
- fd->when &= ~OSMO_FD_READ;
+ osmo_fd_read_disable(fd);
return 0;
}
if (!recv_with_cb(rs))