diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-02-17 09:32:55 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-02-17 09:32:55 +0100 |
commit | 85ed63d3e0a4d27b5b07b162ccb53d82c9c2305b (patch) | |
tree | 885d5db48d3373354ab7ea75f864b22362fd3212 /uca-net-camera.c | |
parent | 2cf4562e5540d0b275ba85427735a0e1d684484f (diff) | |
download | uca-net-85ed63d3e0a4d27b5b07b162ccb53d82c9c2305b.tar.gz uca-net-85ed63d3e0a4d27b5b07b162ccb53d82c9c2305b.tar.bz2 uca-net-85ed63d3e0a4d27b5b07b162ccb53d82c9c2305b.tar.xz uca-net-85ed63d3e0a4d27b5b07b162ccb53d82c9c2305b.zip |
Set port centrally and allow server override
Diffstat (limited to 'uca-net-camera.c')
-rw-r--r-- | uca-net-camera.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uca-net-camera.c b/uca-net-camera.c index d755a07..bd1c044 100644 --- a/uca-net-camera.c +++ b/uca-net-camera.c @@ -23,6 +23,7 @@ #include <uca/uca-camera.h> #include "uca-net-camera.h" #include "uca-net-protocol.h" +#include "config.h" #define UCA_NET_CAMERA_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), UCA_TYPE_NET_CAMERA, UcaNetCameraPrivate)) @@ -242,7 +243,7 @@ uca_net_camera_constructed (GObject *object) if (priv->host == NULL) priv->host = g_strdup ("localhost"); - priv->connection = g_socket_client_connect_to_host (priv->client, priv->host, 8989, NULL, &priv->construct_error); + priv->connection = g_socket_client_connect_to_host (priv->client, priv->host, UCA_NET_DEFAULT_PORT, NULL, &priv->construct_error); } static void |