telepathy-glib: tp_call_stream_endpoint_get_state: return a TpStreamEndpointState on error

Simon McVittie smcv at kemper.freedesktop.org
Thu Jun 20 07:41:54 PDT 2013


Module: telepathy-glib
Branch: master
Commit: a4552870397dfad0f6f76e64e1f030845236cd98
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=a4552870397dfad0f6f76e64e1f030845236cd98

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed Feb 22 15:01:01 2012 +0000

tp_call_stream_endpoint_get_state: return a TpStreamEndpointState on error

TP_MEDIA_STREAM_STATE_DISCONNECTED is from another enum entirely,
and will no longer exist in Telepathy 1.0.

Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
Reviewed-by: Xavier Claessens <xavier.claessens at collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65517

---

 telepathy-glib/call-stream-endpoint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/telepathy-glib/call-stream-endpoint.c b/telepathy-glib/call-stream-endpoint.c
index 698c473..2f87d2d 100644
--- a/telepathy-glib/call-stream-endpoint.c
+++ b/telepathy-glib/call-stream-endpoint.c
@@ -549,7 +549,7 @@ tp_call_stream_endpoint_get_state (TpCallStreamEndpoint *self,
     TpStreamComponent component)
 {
   g_return_val_if_fail (TP_IS_CALL_STREAM_ENDPOINT (self),
-      TP_MEDIA_STREAM_STATE_DISCONNECTED);
+      TP_STREAM_ENDPOINT_STATE_FAILED);
 
   return GPOINTER_TO_UINT (g_hash_table_lookup (self->priv->endpoint_state,
       GUINT_TO_POINTER (component)));



More information about the telepathy-commits mailing list