ptpclock: do not require a name to create a clock

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
This commit is contained in:
Michael Tretter 2017-11-30 17:49:10 +01:00 committed by Sebastian Dröge
parent 906bbd3817
commit bbafb78b1e

View 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)) {