[farsight2/master] Ignore more than one call to candidates_added()
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:25 PST 2008
---
transmitters/nice/fs-nice-stream-transmitter.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 7b3bd4b..29250a8 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -640,6 +640,13 @@ fs_nice_stream_transmitter_remote_candidates_added (
gint c;
FS_NICE_STREAM_TRANSMITTER_LOCK (self);
+ if (self->priv->candidates_added)
+ {
+ FS_NICE_STREAM_TRANSMITTER_UNLOCK (self);
+ GST_LOG ("remote_candidates_added already called, ignoring");
+ return;
+ }
+
self->priv->candidates_added = TRUE;
candidates = self->priv->candidates_to_set;
self->priv->candidates_to_set = NULL;
--
1.5.6.5
More information about the farsight-commits
mailing list