diff options
author | Max <msuraev@sysmocom.de> | 2016-04-26 14:26:59 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-04-26 17:23:34 +0200 |
commit | 86c9e4597c1c4a9be160bd44b8a8dc7d13c0b59c (patch) | |
tree | f392c5350aaa563629568a7045da3410372536f9 | |
parent | f75ec350bd3358e13cb56fd4e9cac22f9075465b (diff) |
Remove use of private oRTP function
ortp: the rtp_session_rtcp_recv() function is not part of public oRTP
API so we shouldn't use it. Besides it is called internally by oRTP in
rtp_session_recvm_with_ts() which we call anyway.
-rw-r--r-- | src/trau/osmo_ortp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c index 36c06b2..f918b4a 100644 --- a/src/trau/osmo_ortp.c +++ b/src/trau/osmo_ortp.c @@ -200,12 +200,10 @@ static int osmo_rtp_fd_cb(struct osmo_fd *fd, unsigned int what) static int osmo_rtcp_fd_cb(struct osmo_fd *fd, unsigned int what) { - struct osmo_rtp_socket *rs = fd->data; - - /* We probably don't need this at all, as + /* Nothing to see here, move along: * rtp_session_recvm_with_ts() will alway also poll the RTCP * file descriptor for new data */ - return rtp_session_rtcp_recv(rs->sess); + return 0; } static int osmo_rtp_socket_fdreg(struct osmo_rtp_socket *rs) |