From 9fb2604ae01bf2dc702a49991f3ca20d28c471d2 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 3 Oct 2014 12:47:53 +0100 Subject: Simplify cbcallstarted() --- ratox.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index 6fe4b0e..3d6353f 100644 --- 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); -- cgit v1.2.3