Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kolny <marcin.kolny@gmail.com>2016-12-03 00:47:32 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-12-07 12:22:16 +0300
commit176c078c45dfd52d463d105efe669eeff80da463 (patch)
tree732c01a1a63143811e2e6d06ae1d8c0f34fbbc82
parentc57f6375f9d5b282194afdb6ea4dd734cd51fa54 (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 0b3e4dfff9..cce8952f8e 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;