mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
rtp_proxy: Remove dead code
commit 65be6de155
removed the RTP
timesetamp mangling and thus the only caller to tv_difference(),
which can now be removed, too.
This commit is contained in:
@@ -213,21 +213,6 @@ static int rtp_decode(struct msgb *msg, uint32_t callref, struct msgb **data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* "to - from" */
|
||||
static void tv_difference(struct timeval *diff, const struct timeval *from,
|
||||
const struct timeval *__to)
|
||||
{
|
||||
struct timeval _to = *__to, *to = &_to;
|
||||
|
||||
if (to->tv_usec < from->tv_usec) {
|
||||
to->tv_sec -= 1;
|
||||
to->tv_usec += 1000000;
|
||||
}
|
||||
|
||||
diff->tv_usec = to->tv_usec - from->tv_usec;
|
||||
diff->tv_sec = to->tv_sec - from->tv_sec;
|
||||
}
|
||||
|
||||
/*! \brief encode and send a rtp frame
|
||||
* \param[in] rs RTP socket through which we shall send
|
||||
* \param[in] frame GSM RTP frame to be sent
|
||||
|
Reference in New Issue
Block a user