summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-02 13:02:40 (GMT)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-02 15:41:04 (GMT)
commit8e7c583889a050a24221aa2a4184e0f78a858141 (patch)
treedadeaf9791be807697d7bdc0ac48f9d4d5854d2c
parent51feddf4ff90383e08761f380bb02cadd472f096 (diff)
downloadtelepathy-yell-8e7c583889a050a24221aa2a4184e0f78a858141.tar.gz
telepathy-yell-8e7c583889a050a24221aa2a4184e0f78a858141.tar.xz
Check parameters in public APIs
-rw-r--r--telepathy-yell/call-channel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-yell/call-channel.c b/telepathy-yell/call-channel.c
index 5add86a..a11def3 100644
--- a/telepathy-yell/call-channel.c
+++ b/telepathy-yell/call-channel.c
@@ -782,12 +782,16 @@ tpy_call_channel_get_state (TpyCallChannel *self,
gboolean
tpy_call_channel_has_initial_video (TpyCallChannel *self)
{
+ g_return_val_if_fail (TPY_IS_CALL_CHANNEL (self), FALSE);
+
return self->priv->initial_video;
}
gboolean
tpy_call_channel_has_initial_audio (TpyCallChannel *self)
{
+ g_return_val_if_fail (TPY_IS_CALL_CHANNEL (self), FALSE);
+
return self->priv->initial_audio;
}
@@ -798,6 +802,8 @@ tpy_call_channel_send_video (TpyCallChannel *self,
gboolean found = FALSE;
guint i;
+ g_return_if_fail (TPY_IS_CALL_CHANNEL (self));
+
/* Loop over all the contents, if some of them a video set all their
* streams to sending, otherwise request a video channel in case we want to
* sent */