diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-12-27 23:00:36 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-12-27 23:00:36 +0000 |
commit | a06b9161dc442bfb97b4b90f97d117b42fc5b488 (patch) | |
tree | a5b8f4ef43b6597c84837e9d02ee506cf4bddae6 /sys | |
parent | 9308e1e4b0fe22909ce70e4787ec9b8dea615f35 (diff) |
Update to new element sync API
Original commit message from CVS:
Update to new element sync API
Diffstat (limited to 'sys')
-rw-r--r-- | sys/oss/gstosssink.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |