src/app/transcode/task.cpp
GstClockTime Task::getRunningTime(GstElement* branch)
{
    GstClockTime result = 0ULL;
    if (branch)
    {
        GstClock *clock = gst_element_get_clock(branch);
        if (clock)
        {
            result = gst_clock_get_time(clock) -
                gst_element_get_base_time(branch);
            gst_object_unref(clock);
        }
    }
    return result;
}
// Retrives running time since the branch element
// was last time set to PAUSED
Retrives running time since the branch element
was last time set to PAUSED
Retrives running time since the branch element was last time set to PAUSED
GstClockTime Task::getRunningTime(GstElement* branch)
{
    GstClockTime result = 0ULL;
    if (branch)
    {
        GstClock *clock = gst_element_get_clock(branch);
        if (clock)
        {
            result = gst_clock_get_time(clock) -
                gst_element_get_base_time(branch);
            gst_object_unref(clock);
        }
    }
    return result;
}
GstClockTime Task :: getRunningTime ( GstElement * branch ) { GstClockTime result = 0ULL ; if ( branch ) { GstClock * clock = gst_element_get_clock ( branch ) ; if ( clock ) { result = gst_clock_get_time ( clock ) - gst_element_get_base_time ( branch ) ; gst_object_unref ( clock ) ; } } return result ; }
Retrives running time since the branch element
was last time set to PAUSED
Retrives running time since the branch element was last time set to PAUSED