ptpclock: do not require a name to create a clock
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 30 Nov 2017 16:49:10 +0000 (17:49 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 1 Dec 2017 08:02:11 +0000 (10:02 +0200)
The gst_ptp_clock_new() does not actually require a name. However, for
example the rtpjitterbuffer may create a clock without a name, fail, and
fall back to not using the PTP clock.

https://bugzilla.gnome.org/show_bug.cgi?id=791034

libs/gst/net/gstptpclock.c

index 64438f9..c8b4f6f 100644 (file)
@@ -2524,7 +2524,6 @@ gst_ptp_clock_new (const gchar * name, guint domain)
 {
   GstClock *clock;
 
-  g_return_val_if_fail (name != NULL, NULL);
   g_return_val_if_fail (domain <= G_MAXUINT8, NULL);
 
   if (!initted && !gst_ptp_init (GST_PTP_CLOCK_ID_NONE, NULL)) {