<div dir="ltr"><div>I create a clock like following:<br></div>mGstClock = GST_AUDIO_CLOCK(gst_audio_clock_new("my_clock_name", (GstAudioClockGetTimeFunc)getMyClockTimeForGst, this, NULL/*GDestroyNotify destroy_notify*/));<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">yuan.fang <<a href="mailto:whitefangyuan@163.com">whitefangyuan@163.com</a>> 于2019年5月28日周二 下午9:10写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi expert<br>
<br>
I met a same issue with you , have you get an example or guidance to<br>
subclass GstSystemClock?<br>
<br>
Thanks!<br>
Halley Zhao wrote<br>
> I looked into GstAudioClock, pulsesink; and find that the simple solution<br>
> may be creating a GstAudioClock with customized GstAudioClockGetTimeFunc.<br>
> expect it will work for me.<br>
> <br>
>   GST_AUDIO_BASE_SINK (pulsesink)->provided_clock =<br>
>       gst_audio_clock_new ("GstPulseSinkClock",<br>
>       (GstAudioClockGetTimeFunc) gst_pulsesink_get_time, pulsesink, NULL);<br>
> <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
<br>
> gstreamer-devel@.freedesktop<br>
<br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>