summaryrefslogtreecommitdiffstats
path: root/uca-net-camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'uca-net-camera.c')
-rw-r--r--uca-net-camera.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uca-net-camera.c b/uca-net-camera.c
index 657cccc..c1ad5f0 100644
--- a/uca-net-camera.c
+++ b/uca-net-camera.c
@@ -568,7 +568,7 @@ uca_net_camera_constructed (GObject *object)
priv = UCA_NET_CAMERA_GET_PRIVATE (object);
- if (priv->host == NULL || !g_strcmp0 (priv->host, "")) {
+ if (priv->host == NULL) {
const gchar *env;
env = g_getenv ("UCA_NET_HOST");
@@ -616,7 +616,7 @@ uca_net_camera_class_init (UcaNetCameraClass *klass)
g_param_spec_string ("host",
"Host name and optional port",
"Host name and optional port",
- "",
+ "localhost",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
for (guint i = PROP_0 + 1; i < N_BASE_PROPERTIES; i++)