summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-03 12:47:53 +0100
committersin <sin@2f30.org>2014-10-03 12:47:53 +0100
commit9fb2604ae01bf2dc702a49991f3ca20d28c471d2 (patch)
tree0d22524cf17cc76192873a300272fcd3f1f8ab59 /ratox.c
parent4c4d2d25f8c24d1e2ec962962dcbd48bc9d541bb (diff)
Simplify cbcallstarted()
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c17
1 files changed, 1 insertions, 16 deletions
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);