summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kolny <marcin.kolny@gmail.com>2016-12-02 22:47:32 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-12-06 12:10:17 +0200
commit90f101981cccdd5aed7266298e466e5f00e4737a (patch)
tree036709e14966693791ee74642e3ffe62c1229aea
parent28db1c063117a480401ce4907ff0997a04c83cc5 (diff)
net: set clock name in the constructor
gst_net_client_clock_new() and gst_ntp_clock_new() didn't set the "name" property. https://bugzilla.gnome.org/show_bug.cgi?id=775538
-rw-r--r--libs/gst/net/gstnetclientclock.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c
index 0b3e4dfff..cce8952f8 100644
--- a/libs/gst/net/gstnetclientclock.c
+++ b/libs/gst/net/gstnetclientclock.c
@@ -1395,8 +1395,9 @@ gst_net_client_clock_new (const gchar * name, const gchar * remote_address,
g_return_val_if_fail (remote_port <= G_MAXUINT16, NULL);
g_return_val_if_fail (base_time != GST_CLOCK_TIME_NONE, NULL);
- ret = g_object_new (GST_TYPE_NET_CLIENT_CLOCK, "address", remote_address,
- "port", remote_port, "base-time", base_time, NULL);
+ ret =
+ g_object_new (GST_TYPE_NET_CLIENT_CLOCK, "name", name, "address",
+ remote_address, "port", remote_port, "base-time", base_time, NULL);
return ret;
}
@@ -1440,7 +1441,8 @@ gst_ntp_clock_new (const gchar * name, const gchar * remote_address,
g_return_val_if_fail (remote_port <= G_MAXUINT16, NULL);
g_return_val_if_fail (base_time != GST_CLOCK_TIME_NONE, NULL);
- ret = g_object_new (GST_TYPE_NTP_CLOCK, "address", remote_address,
+ ret =
+ g_object_new (GST_TYPE_NTP_CLOCK, "name", name, "address", remote_address,
"port", remote_port, "base-time", base_time, NULL);
return ret;