gst_pipeline_set_clock() doesn't take effect

Nicolas Dufresne nicolas at
Mon May 20 22:54:36 UTC 2019

Le lun. 20 mai 2019 00 h 26, Halley Zhao <aihua.halley.zhao at> a
écrit :

> Hi Expert:
>   I created my customized pipeline as
> "appsrc-->h264parse-->v4l2h264dec-->waylandsink".
>   then I try to use my customized clock to control the video playback (in
> fact, I used the above pipeline inside a bigger/complete pipeline).
> however, I found gst_pipeline_set_clock() doens't work for me.

set_clock is a one time thing, use gst_pipeline_use_clock() instead.

>   I call gst_pipeline_set_clock() before setting the pipeline to PLAYING
> state, and gst logs shows it take effect (the clock is set to each
> element); but when the pipeline changed state to
> PAUSED, gst_bin_provide_clock_func() return NULL (it is strange),
> and gst_system_clock_obtain() is called to update the clock.
>   I'm not sure whether there is something wrong in my code, or potential
> mistake in gst base code.
> here is my sample code and gst logs(GST_DEBUG=*:6).
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list