TT#122401 actually shut down DTX when out of time

Change-Id: Idfb934e439fd4b3f2cbc37a93b3e45a1f5391917
rfuchs/1283
Richard Fuchs 5 years ago
parent ab8b25cca8
commit 4c9b5434bf

@ -192,6 +192,7 @@ static int __buffer_dtx(struct dtx_buffer *dtxb, struct codec_ssrc_handler *ch,
struct transcode_packet *packet, struct media_packet *mp,
int (*func)(struct codec_ssrc_handler *ch, struct transcode_packet *packet,
struct media_packet *mp));
static void __dtx_shutdown(struct dtx_buffer *dtxb);
static struct codec_handler *__decoder_handler(struct codec_handler *h, struct media_packet *mp);
@ -2582,8 +2583,13 @@ static void __dtx_send_later(struct timerthread_queue *ttq, void *p) {
ilogs(dtx, LOG_WARN | LOG_FLAG_LIMIT,
"Decoder error handling DTX/lost packet");
}
else
else {
ilogs(dtx, LOG_DEBUG, "Stopping DTX at TS %lu", ts);
mutex_lock(&dtxb->lock);
__dtx_shutdown(dtxb);
mutex_unlock(&dtxb->lock);
}
}
__ssrc_unlock_both(&mp_copy);

Loading…
Cancel
Save