use GST_TIME_*

Original commit message from CVS:
use GST_TIME_*
This commit is contained in:
Thomas Vander Stichele 2004-04-20 16:42:25 +00:00
parent 5a322ed432
commit 2365399bd7
2 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-04-20 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstelement.c: (gst_element_wait),
(gst_element_set_time_delay), (gst_element_change_state):
Use GST_TIME_*
2004-04-20 Benjamin Otte <in7y118@public.uni-hamburg.de> 2004-04-20 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/autoplug/gstspider.c: (gst_spider_link_sometimes), * gst/autoplug/gstspider.c: (gst_spider_link_sometimes),

View file

@ -857,7 +857,10 @@ gst_element_wait (GstElement * element, GstClockTime timestamp)
/* shortcut when we're already late... */ /* shortcut when we're already late... */
if (gst_element_get_time (element) >= timestamp) { if (gst_element_get_time (element) >= timestamp) {
GST_INFO_OBJECT (element, "called gst_element_wait and was late"); GST_INFO_OBJECT (element,
"called gst_element_wait (% " GST_TIME_FORMAT ") and was late (%"
GST_TIME_FORMAT, GST_TIME_ARGS (timestamp),
GST_TIME_ARGS (gst_element_get_time (element)));
return TRUE; return TRUE;
} }
@ -919,7 +922,8 @@ gst_element_set_time_delay (GstElement * element, GstClockTime time,
case GST_STATE_PLAYING: case GST_STATE_PLAYING:
event_time = gst_clock_get_event_time_delay (element->clock, delay); event_time = gst_clock_get_event_time_delay (element->clock, delay);
GST_CAT_LOG_OBJECT (GST_CAT_CLOCK, element, GST_CAT_LOG_OBJECT (GST_CAT_CLOCK, element,
"clock time %llu: setting element time to %llu", event_time, time); "clock time %" GST_TIME_FORMAT ": setting element time to %"
GST_TIME_FORMAT, GST_TIME_ARGS (event_time), GST_TIME_ARGS (time));
element->base_time = event_time - time; element->base_time = event_time - time;
break; break;
default: default:
@ -2893,7 +2897,7 @@ gst_element_change_state (GstElement * element)
element->base_time = time - element->base_time; element->base_time = time - element->base_time;
GST_CAT_LOG_OBJECT (GST_CAT_CLOCK, element, "setting base time to %" GST_CAT_LOG_OBJECT (GST_CAT_CLOCK, element, "setting base time to %"
G_GINT64_FORMAT, element->base_time); GST_TIME_FORMAT, GST_TIME_ARGS (element->base_time));
} }
break; break;
/* if we are going to paused, we try to negotiate the pads */ /* if we are going to paused, we try to negotiate the pads */