From a06b9161dc442bfb97b4b90f97d117b42fc5b488 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 27 Dec 2002 23:00:36 +0000 Subject: Update to new element sync API Original commit message from CVS: Update to new element sync API --- sys/oss/gstosssink.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index ba86f913..86ca1f3f 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -375,8 +375,10 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf) queued = delay * GST_SECOND / osssink->common.bps; if (osssink->resync && osssink->sync) { - gst_element_clock_wait (GST_ELEMENT (osssink), osssink->clock, - buftime - queued, &jitter); + GstClockID id = gst_clock_new_single_shot_id (osssink->clock, buftime - queued); + + gst_element_clock_wait (GST_ELEMENT (osssink), id, &jitter); + gst_clock_id_free (id); if (jitter >= 0) { gst_clock_handle_discont (osssink->clock, buftime - queued + jitter); -- cgit