This is now needed as GstClock does not do that internally anymore,
because that broke bindings.
And mark the function correctly as (transfer full), which it already was
before.
https://bugzilla.gnome.org/show_bug.cgi?id=743062
* calculated it will call @func with @user_data. When @func returns
* #GST_CLOCK_TIME_NONE, the clock will return the last reported time.
*
- * Returns: a new #GstAudioClock casted to a #GstClock.
+ * Returns: (transfer full): a new #GstAudioClock casted to a #GstClock.
*/
GstClock *
gst_audio_clock_new (const gchar * name, GstAudioClockGetTimeFunc func,
aclock->user_data = user_data;
aclock->destroy_notify = destroy_notify;
+ gst_object_ref_sink (aclock);
+
return (GstClock *) aclock;
}