summaryrefslogtreecommitdiff
path: root/gst/gstscheduler.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-05-26 21:54:27 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-05-26 21:54:27 +0000
commit6f96a24d2e1b48d050558379bbbc9600a627b6e6 (patch)
treeb942dfec9c3d5b3578ee3d3baa2c0f1274223537 /gst/gstscheduler.c
parent692b076459e4a7f80dbfb334fe717974a1c52de3 (diff)
downloadgstreamer-6f96a24d2e1b48d050558379bbbc9600a627b6e6.tar.gz
- The clock_wait now returns the difference between requested time and unlock time.
Original commit message from CVS: - The clock_wait now returns the difference between requested time and unlock time. - Misc defines like GST_SECOND in gstclock.h - remove pre/post in gstelement.c until fixed. - added release_locks to gstelement so that the element can unlock itself - added some more predefined events. - added folowing functions to gstpad: - convert function: get the relation between formats on this pad - query function: get stats about the pad (position/total/latency) - internal connect function: find out how this pad connects to other pad internally to the element. - generic pad_dispatcher. - removed the last bits of pullregion - use release_locks on the queue. - added some events to queue - make gstthread use the new release_locks function - make the scheduler use the new clock_wait functions - added events to fakesink - added query functions to filesrc - swap type and offset in the bytestream seek API to match fseek - added some event handling in bytestream.
Diffstat (limited to 'gst/gstscheduler.c')
-rw-r--r--gst/gstscheduler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/gstscheduler.c b/gst/gstscheduler.c
index 46de9a5c6a..0291bbcbcf 100644
--- a/gst/gstscheduler.c
+++ b/gst/gstscheduler.c
@@ -548,12 +548,13 @@ gst_scheduler_auto_clock (GstScheduler *sched)
* Returns: the status of the operation
*/
GstClockReturn
-gst_scheduler_clock_wait (GstScheduler *sched, GstElement *element, GstClock *clock, GstClockTime time)
+gst_scheduler_clock_wait (GstScheduler *sched, GstElement *element, GstClock *clock, GstClockTime time,
+ GstClockTimeDiff *jitter)
{
g_return_val_if_fail (GST_IS_SCHEDULER (sched), GST_CLOCK_ERROR);
if (CLASS (sched)->clock_wait)
- return CLASS (sched)->clock_wait (sched, element, clock, time);
+ return CLASS (sched)->clock_wait (sched, element, clock, time, jitter);
return GST_CLOCK_TIMEOUT;
}