summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hoffmann <info@cms-db.de>2017-05-08 19:58:39 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-05-08 19:58:39 +0200
commit43ab7ce976f617f7f86d4c94fe663c3c0bd1f987 (patch)
treee99efd9f638eae79e13f497bad1de9f96de8ec06
parent8f82d74c3bd4bb0d72e4ed4243a16db8c4e9c45a (diff)
Set correct clock rate for telephone events (#241)
* Set correct clock rate for telephone events * Update to latest changes in libre patch
-rw-r--r--src/audio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index 9e6de78..820ff1b 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -733,7 +733,7 @@ int audio_alloc(struct audio **ap, const struct config *cfg,
goto out;
}
- err = telev_alloc(&a->telev, TELEV_PTIME);
+ err = telev_alloc(&a->telev, ptime);
if (err)
goto out;
@@ -1229,6 +1229,8 @@ int audio_encoder_set(struct audio *a, const struct aucodec *ac,
stream_set_srate(a->strm, ac->crate, ac->crate);
stream_update_encoder(a->strm, pt_tx);
+ telev_set_srate(a->telev, ac->crate);
+
if (!tx->ausrc) {
err |= audio_start(a);
}