aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 57a858ce..6c509e3c 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -76,12 +76,8 @@ static uint32_t fn_ms_adj(uint32_t fn, const struct gsm_lchan *lchan)
{
uint32_t samples_passed, r;
- /* don't adjust duration:
- - when no DTX enabled at all
- - for ONSET RTP packet to avoid timestamp gap with subsequent SPEECH
- RTP packet*/
- if (lchan->rtp_tx_marker ||
- lchan->ts->trx->bts->dtxu == GSM48_DTX_SHALL_NOT_BE_USED)
+ /* don't adjust duration when DTX is not enabled */
+ if (lchan->ts->trx->bts->dtxu == GSM48_DTX_SHALL_NOT_BE_USED)
return GSM_RTP_DURATION;
if (lchan->tch.last_fn != LCHAN_FN_DUMMY) {