diff options
author | sin <sin@2f30.org> | 2014-10-03 12:47:53 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-10-03 12:47:53 +0100 |
commit | 9fb2604ae01bf2dc702a49991f3ca20d28c471d2 (patch) | |
tree | 0d22524cf17cc76192873a300272fcd3f1f8ab59 /ratox.c | |
parent | 4c4d2d25f8c24d1e2ec962962dcbd48bc9d541bb (diff) |
Simplify cbcallstarted()
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -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); |