Is there any example to subclass GstSystemClock?

Halley Zhao aihua.halley.zhao at gmail.com
Wed May 29 07:18:13 UTC 2019


I create a clock like following:
mGstClock = GST_AUDIO_CLOCK(gst_audio_clock_new("my_clock_name",
(GstAudioClockGetTimeFunc)getMyClockTimeForGst, this, NULL/*GDestroyNotify
destroy_notify*/));

yuan.fang <whitefangyuan at 163.com> 于2019年5月28日周二 下午9:10写道:

> Hi expert
>
> I met a same issue with you , have you get an example or guidance to
> subclass GstSystemClock?
>
> Thanks!
> Halley Zhao wrote
> > I looked into GstAudioClock, pulsesink; and find that the simple solution
> > may be creating a GstAudioClock with customized GstAudioClockGetTimeFunc.
> > expect it will work for me.
> >
> >   GST_AUDIO_BASE_SINK (pulsesink)->provided_clock =
> >       gst_audio_clock_new ("GstPulseSinkClock",
> >       (GstAudioClockGetTimeFunc) gst_pulsesink_get_time, pulsesink,
> NULL);
> >
> > _______________________________________________
> > gstreamer-devel mailing list
>
> > gstreamer-devel at .freedesktop
>
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190529/b87673b6/attachment.html>


More information about the gstreamer-devel mailing list