From 7b5a5afa3a1606ae83e0137476350fa09c4977f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Wed, 6 Mar 2024 12:22:26 +0100 Subject: [PATCH] ptp clock: fix annotations for gst_ptp_clock_new * Set `name` as `nullable` same as for gst_ntp_clock_new. * Set return value as nullable as the constructor can fail. Part-of: --- girs/GstNet-1.0.gir | 4 ++-- subprojects/gstreamer/libs/gst/net/gstptpclock.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 */