diff --git a/girs/GstNet-1.0.gir b/girs/GstNet-1.0.gir
index 4b85d6dbcc..6e0605afcd 100644
--- a/girs/GstNet-1.0.gir
+++ b/girs/GstNet-1.0.gir
@@ -587,12 +587,12 @@ GstPtpClock::internal-clock property will become non-NULL. You can
check this with gst_clock_wait_for_sync(), the GstClock::synced signal and
gst_clock_is_synced().
-
+
A new #GstClock
-
+
Name of the clock
diff --git a/subprojects/gstreamer/libs/gst/net/gstptpclock.c b/subprojects/gstreamer/libs/gst/net/gstptpclock.c
index 09f482ecd1..0b69eb61cf 100644
--- a/subprojects/gstreamer/libs/gst/net/gstptpclock.c
+++ b/subprojects/gstreamer/libs/gst/net/gstptpclock.c
@@ -3266,7 +3266,7 @@ gst_ptp_clock_get_internal_time (GstClock * clock)
/**
* gst_ptp_clock_new:
- * @name: Name of the clock
+ * @name: (nullable): Name of the clock
* @domain: PTP domain
*
* Creates a new PTP clock instance that exports the PTP time of the master
@@ -3281,7 +3281,7 @@ gst_ptp_clock_get_internal_time (GstClock * clock)
* check this with gst_clock_wait_for_sync(), the GstClock::synced signal and
* gst_clock_is_synced().
*
- * Returns: (transfer full): A new #GstClock
+ * Returns: (transfer full) (nullable): A new #GstClock
*
* Since: 1.6
*/