mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-01 17:31:10 +00:00
portability fixes
Original commit message from CVS: portability fixes
This commit is contained in:
parent
0f78a7e04e
commit
cfc1bc586d
1 changed files with 8 additions and 6 deletions
|
@ -128,19 +128,21 @@ gst_system_clock_get_resolution (GstClock *clock)
|
||||||
return 1 * GST_USECOND;
|
return 1 * GST_USECOND;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstClockEntryStatus
|
static GstClockEntryStatus
|
||||||
gst_system_clock_wait (GstClock *clock, GstClockEntry *entry)
|
gst_system_clock_wait (GstClock *clock, GstClockEntry *entry)
|
||||||
{
|
{
|
||||||
GstClockEntryStatus res = GST_CLOCK_ENTRY_OK;
|
GstClockEntryStatus res = GST_CLOCK_ENTRY_OK;
|
||||||
GstClockTime current, target;
|
GstClockTime current, target;
|
||||||
|
|
||||||
current = gst_clock_get_time (clock);
|
current = gst_clock_get_time (clock);
|
||||||
target = gst_system_clock_get_internal_time (clock) +
|
target = gst_system_clock_get_internal_time (clock) +
|
||||||
GST_CLOCK_ENTRY_TIME (entry) - current;
|
GST_CLOCK_ENTRY_TIME (entry) - current;
|
||||||
|
|
||||||
GST_DEBUG (GST_CAT_CLOCK, "real_target %llu, target %llu, now %llu",
|
GST_DEBUG (GST_CAT_CLOCK, "real_target %" G_GUINT64_FORMAT
|
||||||
target, GST_CLOCK_ENTRY_TIME (entry), current);
|
" target %" G_GUINT64_FORMAT
|
||||||
|
" now %" G_GUINT64_FORMAT,
|
||||||
|
target, GST_CLOCK_ENTRY_TIME (entry), current);
|
||||||
|
|
||||||
if (((gint64)target) > 0) {
|
if (((gint64)target) > 0) {
|
||||||
GTimeVal tv;
|
GTimeVal tv;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue