summaryrefslogtreecommitdiff
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index c98e35c..2b5be6e 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -325,7 +325,7 @@ static void encode_rtp_send(struct audio *a, struct autx *tx,
size_t len;
int err;
- if (!tx->ac)
+ if (!tx->ac || !tx->ac->ench)
return;
tx->mb->pos = tx->mb->end = STREAM_PRESZ;