media: don't poll backend for established candidate pairs
commit3799e8b25cb3fb977f044b972650da42052a9963
authorJakub Adam <jakub.adam@ktknet.cz>
Tue, 30 Jun 2015 12:26:27 +0000 (30 14:26 +0200)
committerJakub Adam <jakub.adam@ktknet.cz>
Tue, 27 Oct 2015 11:02:30 +0000 (27 12:02 +0100)
treed8b9c7c40d7769ebbdbbe4580e75c1bbe096d01e
parent69367e2444c30830a1fd38e9c517a4975fa8e9a2
media: don't poll backend for established candidate pairs

Rework the code to better utilize "candidate-pair-established" signal
from PurpleMedia. With this change there's no need for repeated polling
of active candidate pairs in reinvite_on_candidate_pair_cb().

By removing that callback we also avoid a segfault when the outgoing
call was cancelled before the stream managed to establish a candidate
pair.
src/api/sipe-core.h
src/core/sipe-media.c
src/purple/purple-media.c