[gst-devel] Where to get a clock in a pipeline?

Stefan Kost ensonic at hora-obscura.de
Fri Apr 16 11:18:39 CEST 2010


hi,

wl2776 wrote:
> If I create an instance of the playbin2, then its clock field contains a
> pointer to an object named "GstSystemClock".
>
> However, if I create a new pipeline with gst_pipeline_new, its clock field
> is NULL.
> But, if a call gst_pipeline_get_clock() returns a pointer to an object with
> the same name (GstSystemClock).
>
> I also digged in the playbin2 sources and didn't find a code, filling this
> field.
>
> So, what does this clock field mean, and how can I fill and use it?
>   

you don't fill it normally. The pipleine will ask its elements about a
clock (e.g. the audiosink would usualy provide one). If noone provides
one a system clock it used.

Stefan




More information about the gstreamer-devel mailing list