diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-03-06 10:33:04 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-03-06 10:33:04 -0500 |
commit | 0ca4ba4c593df911bb491dfdce4ccccd77118167 (patch) | |
tree | 3a7fbb45ffc5688711f4e5865bd60ec6b2a15a01 | |
parent | 240648e79c882702b497b0af9c3ec5cc563739d6 (diff) |
call-stream: Ignore local candidates if there are none
Otherwise it will call add_candidates() with NULL which triggers
a ICE restart.
-rw-r--r-- | telepathy-farstream/call-stream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telepathy-farstream/call-stream.c b/telepathy-farstream/call-stream.c index 9713dec..b1d21ec 100644 --- a/telepathy-farstream/call-stream.c +++ b/telepathy-farstream/call-stream.c @@ -307,6 +307,10 @@ _tf_call_stream_push_remote_candidates (TfCallStream *self, gboolean ret; GError *error = NULL; + /* If there are no candidates, nothing to do, just return */ + if (fscandidates == NULL) + return; + switch (self->transport_type) { case TP_STREAM_TRANSPORT_TYPE_RAW_UDP: |