clock - base_time is not equal to running time for decklinkvideosrc

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

clock - base_time is not equal to running time for decklinkvideosrc

Baby Octopus
Administrator
Hi,

We have a custom packetizer element which heavily relies of when the pipeline has gone to playing state. We subtract base_time from clock to know if the pipeline has gone to running state

clock = gst_clock_get_time(p_clock)
base_time = gst_element_get_base_time((GstElement *)ps_mux);

if(base_time == 0)
   return(GST_CLOCK_TIME_NONE);
else if(clock - base_time > 0)
   return(clock);


This works well for all src except decklinksrc where base_time comes zero all the time. This seems to be a definite bug since clock-base_time must give running time, and in this case it just return system uptime

~BO
Reply | Threaded
Open this post in threaded view
|

Re: clock - base_time is not equal to running time for decklinkvideosrc

Baby Octopus
Administrator
Seems like I found the issue. Was using gst_system_clock_obtain() instead of GST_ELEMENT_CLOCK()