clock: define AUTO_CLEANUP_FREE_FUNC for GstClockID

GstClockID is secretly a gpointer so we can't use g_autoptr(),
instead user can do:
  g_auto (GstClockID) clock_id = 0;

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/769>
This commit is contained in:
Guillaume Desmottes 2021-03-11 15:41:16 +01:00
parent 0da1721364
commit 44bdad58f6

View file

@ -705,6 +705,7 @@ gboolean gst_clock_periodic_id_reinit (GstClock * clock,
GstClockTime interval);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstClock, gst_object_unref)
G_DEFINE_AUTO_CLEANUP_FREE_FUNC(GstClockID, gst_clock_id_unref, 0)
G_END_DECLS