net: fix faillible PtpClock::new()
PtpClock::new()
can fail in which case it panicked due to an assertion
failure. This commit makes it return a Result
instead.
Also sets the name
argument optional, similar to what is done for NtpClock
.
See also: gstreamer!6251 (merged)
Edited by François Laignel