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
This commit is contained in:
Marcin Kolny 2016-12-02 22:47:32 +01:00 committed by Sebastian Dröge
parent c57f6375f9
commit 176c078c45

View file

@ -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;