ratox

FIFO based tox client
Log | Files | Refs | README | LICENSE

commit 9fb2604ae01bf2dc702a49991f3ca20d28c471d2
parent 4c4d2d25f8c24d1e2ec962962dcbd48bc9d541bb
Author: sin <sin@2f30.org>
Date:   Fri Oct  3 12:47:53 +0100

Simplify cbcallstarted()

Diffstat:
ratox.c | 17+----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/ratox.c b/ratox.c @@ -346,10 +346,8 @@ cbcallinvite(void *av, int32_t cnum, void *udata) static void cbcallstarted(void *av, int32_t cnum, void *udata) { - ToxAvCSettings avconfig; struct friend *f; int32_t fnum; - int r; fnum = toxav_get_peer_id(toxav, cnum, 0); TAILQ_FOREACH(f, &friendhead, entry) @@ -358,20 +356,7 @@ cbcallstarted(void *av, int32_t cnum, void *udata) if (!f) return; - r = toxav_get_peer_csettings(toxav, cnum, 0, &avconfig); - if (r < 0) { - weprintf("Failed to determine peer call type\n"); - return; - } - - switch (avconfig.call_type) { - case TypeVideo: - printout(": %s : Rx AV > Started call without video\n", f->name); - break; - case TypeAudio: - printout(": %s : Rx AV > Started audio call\n", f->name); - break; - } + printout(": %s : Rx AV > Started\n", f->name); toxav_prepare_transmission(toxav, cnum, av_jbufdc, av_VADd, 0);