mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
parent
073201b329
commit
63624f966e
1 changed files with 6 additions and 3 deletions
|
@ -124,10 +124,13 @@ gst_1394_clock_get_internal_time (GstClock * clock)
|
||||||
}
|
}
|
||||||
_1394clock->cycle_timer_lo = cycle_timer;
|
_1394clock->cycle_timer_lo = cycle_timer;
|
||||||
|
|
||||||
result = (((guint64) _1394clock->cycle_timer_hi) << 32) | cycle_timer;
|
/* get the seconds from the cycleSeconds counter */
|
||||||
result *= 40;
|
result = (((((guint64) _1394clock->cycle_timer_hi) << 32) |
|
||||||
|
cycle_timer) >> 25) * GST_SECOND;
|
||||||
|
/* add the microseconds from the cycleCount counter */
|
||||||
|
result += (((cycle_timer >> 13) & 0x1fff) * 125) * GST_USECOND;
|
||||||
|
|
||||||
GST_LOG_OBJECT (clock, "result %" G_GINT64_FORMAT, result);
|
GST_LOG_OBJECT (clock, "result %" GST_TIME_FORMAT, GST_TIME_ARGS (result));
|
||||||
} else {
|
} else {
|
||||||
result = GST_CLOCK_TIME_NONE;
|
result = GST_CLOCK_TIME_NONE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue