[Telepathy-commits] [telepathy-gabble/master] Add debugging output for changing stream directions
Will Thompson
will.thompson at collabora.co.uk
Wed Feb 25 12:48:09 PST 2009
---
src/media-channel.c | 4 ++++
src/media-stream.c | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/media-channel.c b/src/media-channel.c
index 2d846bf..28ed8c9 100644
--- a/src/media-channel.c
+++ b/src/media-channel.c
@@ -1150,6 +1150,8 @@ gabble_media_channel_request_stream_direction (TpSvcChannelTypeStreamedMedia *if
return;
}
+ DEBUG ("called (stream %s, direction %u)", stream->name, stream_direction);
+
/* streams with no session? I think not... */
g_assert (priv->session != NULL);
@@ -2287,6 +2289,8 @@ stream_direction_changed_cb (GabbleMediaStream *stream,
direction = COMBINED_DIRECTION_GET_DIRECTION (combined);
pending_send = COMBINED_DIRECTION_GET_PENDING_SEND (combined);
+ DEBUG ("direction: %u, pending_send: %u", direction, pending_send);
+
tp_svc_channel_type_streamed_media_emit_stream_direction_changed (
chan, id, direction, pending_send);
}
diff --git a/src/media-stream.c b/src/media-stream.c
index 0293b9e..69f99a9 100644
--- a/src/media-stream.c
+++ b/src/media-stream.c
@@ -402,6 +402,8 @@ gabble_media_stream_set_property (GObject *object,
}
break;
case PROP_COMBINED_DIRECTION:
+ DEBUG ("changing combined direction from %u to %u",
+ stream->combined_direction, g_value_get_uint (value));
stream->combined_direction = g_value_get_uint (value);
break;
case PROP_CONTENT:
@@ -1647,6 +1649,8 @@ gabble_media_stream_change_direction (GabbleMediaStream *stream,
update_sending (stream, start_sending);
}
+ DEBUG ("current_dir: %u, requested_dir: %u", current_dir, requested_dir);
+
/* short-circuit sending a request if we're not asking for anything new */
if (current_dir == requested_dir)
return TRUE;
--
1.5.6.5
More information about the telepathy-commits
mailing list