diff --git a/gstreamer-net/src/ptp_clock.rs b/gstreamer-net/src/ptp_clock.rs index 18f1a7823..32eb06557 100644 --- a/gstreamer-net/src/ptp_clock.rs +++ b/gstreamer-net/src/ptp_clock.rs @@ -88,7 +88,7 @@ impl PtpClock { ); assert_ne!(id, 0); - PtpStatisticsCallback(NonZeroU64::new_unchecked(id)) + PtpStatisticsCallback(NonZeroU64::new_unchecked(id as u64)) } } }