summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2011-06-28 18:29:22 (GMT)
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-06-28 18:29:22 (GMT)
commit0c09ee8c0e113de1d9c8236a8e55f013f5ddabff (patch)
treef96b8e992391756fa40f0d5ad25630d761deb497
parenta5ac56734ea685fa3c1e7eb2c2ee51b15f60035f (diff)
downloadtelepathy-farsight-0c09ee8c0e113de1d9c8236a8e55f013f5ddabff.tar.gz
telepathy-farsight-0c09ee8c0e113de1d9c8236a8e55f013f5ddabff.tar.xz
Add debug message on explicit state change
-rw-r--r--telepathy-farsight/stream.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/telepathy-farsight/stream.c b/telepathy-farsight/stream.c
index ae4d153..e41d5dc 100644
--- a/telepathy-farsight/stream.c
+++ b/telepathy-farsight/stream.c
@@ -3071,6 +3071,7 @@ cb_fs_component_state_changed (TfStream *self,
FsStreamState fsstate)
{
TpMediaStreamState state;
+ const gchar *state_str;
if (component != 1)
return;
@@ -3080,18 +3081,24 @@ cb_fs_component_state_changed (TfStream *self,
case FS_STREAM_STATE_FAILED:
case FS_STREAM_STATE_DISCONNECTED:
state = TP_MEDIA_STREAM_STATE_DISCONNECTED;
+ state_str = "disconnected";
break;
case FS_STREAM_STATE_GATHERING:
case FS_STREAM_STATE_CONNECTING:
case FS_STREAM_STATE_CONNECTED:
+ state_str = "connecting";
state = TP_MEDIA_STREAM_STATE_CONNECTING;
break;
case FS_STREAM_STATE_READY:
default:
+ state_str = "connected";
state = TP_MEDIA_STREAM_STATE_CONNECTED;
break;
}
+ DEBUG (self, "calling MediaStreamHandler::StreamState (%u: %s)", state,
+ state_str);
+
self->priv->current_state = state;
tp_cli_media_stream_handler_call_stream_state (