[farsight2/master] Add debug messages
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:19 PST 2008
---
transmitters/nice/fs-nice-stream-transmitter.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index ad48ff6..36759c1 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -567,9 +567,15 @@ fs_nice_stream_transmitter_remote_candidates_added (
if (candidates)
{
- FsCandidate *cand= candidates->data;
+ FsCandidate *cand = candidates->data;
nice_agent_set_remote_credentials (self->priv->transmitter->agent,
- stream_id, cand->username, cand->password);
+ self->priv->stream_id, cand->username, cand->password);
+ }
+ else
+ {
+ GST_DEBUG ("Candidates added called before any candidate set,"
+ " assuming we're in ice-6 with dribble, so every candidate has"
+ " its own password");
}
for (c = 1; c <= self->priv->transmitter->components; c++)
@@ -798,6 +804,9 @@ fs_nice_stream_transmitter_build (FsNiceStreamTransmitter *self,
if (self->priv->gststream == NULL)
return FALSE;
+ GST_DEBUG ("Created a stream with %u components",
+ self->priv->transmitter->components);
+
return TRUE;
}
--
1.5.6.5
More information about the farsight-commits
mailing list