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/770>
This commit is contained in:
Guillaume Desmottes 2021-03-11 15:41:16 +01:00 committed by Tim-Philipp Müller
parent f90e9a71dd
commit 5700308701

View file

@ -642,6 +642,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