summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-04-29 15:25:59 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-04-29 15:25:59 +0200
commit382886e1afdd7ecc7013370cf3050a7eecff3fd6 (patch)
tree41f038283714f2f8e69c879584371730f7ee1cbb
parentb730725c55ce2502e3a8b6ab88402911075fb5f0 (diff)
audio: add offerer flag to audio_alloc
-rw-r--r--src/audio.c3
-rw-r--r--src/call.c2
-rw-r--r--src/core.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/audio.c b/src/audio.c
index 1a89fec..9e6de78 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -678,7 +678,7 @@ int audio_alloc(struct audio **ap, const struct config *cfg,
struct call *call, struct sdp_session *sdp_sess, int label,
const struct mnat *mnat, struct mnat_sess *mnat_sess,
const struct menc *menc, struct menc_sess *menc_sess,
- uint32_t ptime, const struct list *aucodecl,
+ uint32_t ptime, const struct list *aucodecl, bool offerer,
audio_event_h *eventh, audio_err_h *errh, void *arg)
{
struct audio *a;
@@ -686,6 +686,7 @@ int audio_alloc(struct audio **ap, const struct config *cfg,
struct aurx *rx;
struct le *le;
int err;
+ (void)offerer;
if (!ap || !cfg)
return EINVAL;
diff --git a/src/call.c b/src/call.c
index c057dd4..18b9b3a 100644
--- a/src/call.c
+++ b/src/call.c
@@ -589,7 +589,7 @@ int call_alloc(struct call **callp, const struct config *cfg, struct list *lst,
err = audio_alloc(&call->audio, cfg, call,
call->sdp, ++label,
acc->mnat, call->mnats, acc->menc, call->mencs,
- acc->ptime, account_aucodecl(call->acc),
+ acc->ptime, account_aucodecl(call->acc), !got_offer,
audio_event_handler, audio_error_handler, call);
if (err)
goto out;
diff --git a/src/core.h b/src/core.h
index 3974215..51bfa6d 100644
--- a/src/core.h
+++ b/src/core.h
@@ -120,7 +120,7 @@ int audio_alloc(struct audio **ap, const struct config *cfg,
struct call *call, struct sdp_session *sdp_sess, int label,
const struct mnat *mnat, struct mnat_sess *mnat_sess,
const struct menc *menc, struct menc_sess *menc_sess,
- uint32_t ptime, const struct list *aucodecl,
+ uint32_t ptime, const struct list *aucodecl, bool offerer,
audio_event_h *eventh, audio_err_h *errh, void *arg);
int audio_start(struct audio *a);
void audio_stop(struct audio *a);