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 --- ext/aalib/gstaasink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c index ad255fa2..045831e4 100644 --- a/ext/aalib/gstaasink.c +++ b/ext/aalib/gstaasink.c @@ -353,7 +353,9 @@ gst_aasink_chain (GstPad *pad, GstBuffer *buf) GST_DEBUG (0,"videosink: clock wait: %llu", GST_BUFFER_TIMESTAMP(buf)); if (aasink->clock) { - gst_element_clock_wait (GST_ELEMENT (aasink), aasink->clock, GST_BUFFER_TIMESTAMP(buf), NULL); + GstClockID id = gst_clock_new_single_shot_id (aasink->clock, GST_BUFFER_TIMESTAMP(buf)); + gst_element_clock_wait (GST_ELEMENT (aasink), id, NULL); + gst_clock_id_free (id); } aa_render (aasink->context, &aasink->ascii_parms, -- cgit