audio: ensure candidate pairs in sipe_backend_get_local_candidates
commitbc68940f5dd23e05ffcd7922dd65839da9b45f1c
authorJakub Adam <jakub.adam@ktknet.cz>
Mon, 12 Jul 2010 20:31:32 +0000 (12 22:31 +0200)
committerJakub Adam <jakub.adam@ktknet.cz>
Mon, 12 Jul 2010 20:31:32 +0000 (12 22:31 +0200)
treea6552e55e0282b97f5e899d74b541f98319f6dd1
parente6cd5402ed48e5c57477222fe097f700e25d2955
audio: ensure candidate pairs in sipe_backend_get_local_candidates

Sometimes purple will not return complete list of candidates, even
after "candidates-prepared" signal is emitted. This is a feature of
libnice, namely affecting candidates discovered via UPnP. Nice does
not wait until discovery is finished and can signal end of candidate
gathering before all responses from UPnP enabled gateways are received.

Remove any incomplete RTP+RTCP candidate pairs from the list.

For details see this thread on libnice mailing list
http://lists.freedesktop.org/archives/nice/2010-July/000317.html
src/purple/purple-media.c