<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 20 mai 2019 00 h 26, Halley Zhao <<a href="mailto:aihua.halley.zhao@gmail.com">aihua.halley.zhao@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Expert:<div>  I created my customized pipeline as "appsrc-->h264parse-->v4l2h264dec-->waylandsink".</div><div>  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.</div></div></div></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">set_clock is a one time thing, use gst_pipeline_use_clock() instead.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>  </div><div>  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.</div><div><br></div><div>  I'm not sure whether there is something wrong in my code, or potential mistake in gst base code.</div><div>here is my sample code and gst logs(GST_DEBUG=*:6).</div><div><br></div></div></div></div></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>