From cfc1bc586d0b1ac8af1e178d4d7b63ed980f1852 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 9 Dec 2002 23:17:42 +0000 Subject: [PATCH] portability fixes Original commit message from CVS: portability fixes --- gst/gstsystemclock.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gst/gstsystemclock.c b/gst/gstsystemclock.c index b7b0fa789a..8b6df540f2 100644 --- a/gst/gstsystemclock.c +++ b/gst/gstsystemclock.c @@ -128,19 +128,21 @@ gst_system_clock_get_resolution (GstClock *clock) return 1 * GST_USECOND; } -static GstClockEntryStatus +static GstClockEntryStatus gst_system_clock_wait (GstClock *clock, GstClockEntry *entry) { GstClockEntryStatus res = GST_CLOCK_ENTRY_OK; GstClockTime current, target; - + current = gst_clock_get_time (clock); target = gst_system_clock_get_internal_time (clock) + GST_CLOCK_ENTRY_TIME (entry) - current; - - GST_DEBUG (GST_CAT_CLOCK, "real_target %llu, target %llu, now %llu", - target, GST_CLOCK_ENTRY_TIME (entry), current); - + + GST_DEBUG (GST_CAT_CLOCK, "real_target %" G_GUINT64_FORMAT + " target %" G_GUINT64_FORMAT + " now %" G_GUINT64_FORMAT, + target, GST_CLOCK_ENTRY_TIME (entry), current); + if (((gint64)target) > 0) { GTimeVal tv;