diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-06-21 07:25:18 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-06-22 19:26:57 +0200 |
commit | b0c3a4a30f580d591e86774627cb79876610d165 (patch) | |
tree | ddbf5898b2906942d26ecb87e56e00cbbd584a36 /src | |
parent | b26f2fd8253a6e554f6ab7b6b0d48df197836555 (diff) |
osmo_ortp.c: Fix warning: implicit use of function
Explicitly state that we are using an internal API from ortp, and
define the function we are using to avoid printing a warning.
Change-Id: I9cadcb31ce7ade3632d83753be97fdc9ea518b5b
Diffstat (limited to 'src')
-rw-r--r-- | src/trau/osmo_ortp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c index 4e9df56..c4e9d53 100644 --- a/src/trau/osmo_ortp.c +++ b/src/trau/osmo_ortp.c @@ -199,6 +199,10 @@ static int osmo_rtp_fd_cb(struct osmo_fd *fd, unsigned int what) return 0; } +/* Internal API coming from rtpsession_priv.h, used in osmo_rtcp_fd_cb */ +#pragma message ("Using internal ortp API: rtp_session_rtcp_rec") +int rtp_session_rtcp_recv(RtpSession * session); + static int osmo_rtcp_fd_cb(struct osmo_fd *fd, unsigned int what) { struct osmo_rtp_socket *rs = fd->data; @@ -360,7 +364,7 @@ struct osmo_rtp_socket *osmo_rtp_socket_create(void *talloc_ctx, unsigned int fl /* initialize according to the RFC */ rtp_session_set_seq_number(rs->sess, random()); rs->tx_timestamp = random(); - + return rs; } |