mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
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:
parent
0da1721364
commit
44bdad58f6
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue