[farsight2/master] Also check if transmitter is set
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:15 PST 2008
---
transmitters/nice/fs-nice-stream-transmitter.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 579c4e2..104dbda 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -380,31 +380,31 @@ fs_nice_stream_transmitter_set_property (GObject *object,
break;
case PROP_STUN_IP:
self->priv->stun_ip = g_value_dup_string (value);
- if (self->priv->transmitter->agent)
+ if (self->priv->transmitter && self->priv->transmitter->agent)
g_object_set_property (G_OBJECT (self->priv->transmitter->agent),
g_param_spec_get_name (pspec), value);
break;
case PROP_STUN_PORT:
self->priv->stun_port = g_value_get_uint (value);
- if (self->priv->transmitter->agent)
+ if (self->priv->transmitter && self->priv->transmitter->agent)
g_object_set_property (G_OBJECT (self->priv->transmitter->agent),
g_param_spec_get_name (pspec), value);
break;
case PROP_TURN_IP:
self->priv->turn_ip = g_value_dup_string (value);
- if (self->priv->transmitter->agent)
+ if (self->priv->transmitter && self->priv->transmitter->agent)
g_object_set_property (G_OBJECT (self->priv->transmitter->agent),
g_param_spec_get_name (pspec), value);
break;
case PROP_TURN_PORT:
self->priv->turn_port = g_value_get_uint (value);
- if (self->priv->transmitter->agent)
+ if (self->priv->transmitter && self->priv->transmitter->agent)
g_object_set_property (G_OBJECT (self->priv->transmitter->agent),
g_param_spec_get_name (pspec), value);
break;
case PROP_CONTROLLING_MODE:
self->priv->controlling_mode = g_value_get_boolean (value);
- if (self->priv->transmitter->agent)
+ if (self->priv->transmitter && self->priv->transmitter->agent)
g_object_set_property (G_OBJECT (self->priv->transmitter->agent),
g_param_spec_get_name (pspec), value);
break;
--
1.5.6.5
More information about the farsight-commits
mailing list