After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775538 - Property "name" is not set for the net client clock
Property "name" is not set for the net client clock
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
unspecified
Other Linux
: Normal normal
: 1.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-02 23:07 UTC by Marcin Kolny (IRC: loganek)
Modified: 2016-12-07 09:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (2.23 KB, patch)
2016-12-02 23:08 UTC, Marcin Kolny (IRC: loganek)
none Details | Review
fix v2 (1.60 KB, patch)
2016-12-05 22:56 UTC, Marcin Kolny (IRC: loganek)
committed Details | Review

Description Marcin Kolny (IRC: loganek) 2016-12-02 23:07:25 UTC
I've noticed that "name" is not set in following methods:
 * gst_net_client_clock_new()
 * gst_ntp_clock_new()
However, those functions take "name" parameter.
I'm attaching a patch.
Comment 1 Marcin Kolny (IRC: loganek) 2016-12-02 23:08:23 UTC
Created attachment 341278 [details] [review]
fix
Comment 2 Sebastian Dröge (slomo) 2016-12-05 09:31:33 UTC
Comment on attachment 341278 [details] [review]
fix

Why is this a problem? The "name" is set on the external clock, but not on the internal one (and doing so there seems weird: this internal clock can be shared among multiple external ones!)
Comment 3 Marcin Kolny (IRC: loganek) 2016-12-05 09:51:58 UTC
If so, the parameter "name" should be removed, because it seems to be unused in the _new() method.
The change should probably be done on the next API break.
Comment 4 Sebastian Dröge (slomo) 2016-12-05 10:15:54 UTC
Review of attachment 341278 [details] [review]:

::: libs/gst/net/gstnetclientclock.c
@@ +1331,3 @@
+        g_object_new (GST_TYPE_NET_CLIENT_INTERNAL_CLOCK, "name",
+        GST_OBJECT_NAME (self), "address", self->priv->address,
+        "port", self->priv->port, "is-ntp", self->priv->is_ntp, NULL);

This is the one that is wrong, the others are ok
Comment 5 Sebastian Dröge (slomo) 2016-12-05 10:16:28 UTC
Ok, so there is no problem with the internal clock. Can you remove the wrong part of the patch, then I'll merge it :)
Comment 6 Marcin Kolny (IRC: loganek) 2016-12-05 22:56:03 UTC
Created attachment 341439 [details] [review]
fix v2

that's correct, setting a name makes sense for external clocks, not internal ones.
My intention was to uptake unused 'name' parameter of the constructor, so new patch fixes it.
Thanks!
Comment 7 Sebastian Dröge (slomo) 2016-12-06 10:10:34 UTC
commit 90f101981cccdd5aed7266298e466e5f00e4737a
Author: Marcin Kolny <marcin.kolny@gmail.com>
Date:   Fri Dec 2 22:47:32 2016 +0100

    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