summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstudpsink.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-12-27 23:00:36 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-12-27 23:00:36 +0000
commita06b9161dc442bfb97b4b90f97d117b42fc5b488 (patch)
treea5b8f4ef43b6597c84837e9d02ee506cf4bddae6 /gst/udp/gstudpsink.c
parent9308e1e4b0fe22909ce70e4787ec9b8dea615f35 (diff)
Update to new element sync API
Original commit message from CVS: Update to new element sync API
Diffstat (limited to 'gst/udp/gstudpsink.c')
-rw-r--r--gst/udp/gstudpsink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c
index d4aca9c2..fc924840 100644
--- a/gst/udp/gstudpsink.c
+++ b/gst/udp/gstudpsink.c
@@ -259,7 +259,6 @@ gst_udpsink_chain (GstPad *pad, GstBuffer *buf)
{
GstUDPSink *udpsink;
guint tolen, i;
- GstClockTimeDiff *jitter = NULL;
g_return_if_fail (pad != NULL);
g_return_if_fail (GST_IS_PAD (pad));
@@ -268,8 +267,11 @@ gst_udpsink_chain (GstPad *pad, GstBuffer *buf)
udpsink = GST_UDPSINK (GST_OBJECT_PARENT (pad));
if (udpsink->clock) {
+ GstClockID id = gst_clock_new_single_shot_id (udpsink->clock, GST_BUFFER_TIMESTAMP (buf));
+
GST_DEBUG (0, "udpsink: clock wait: %llu\n", GST_BUFFER_TIMESTAMP (buf));
- gst_element_clock_wait (GST_ELEMENT (udpsink), udpsink->clock, GST_BUFFER_TIMESTAMP (buf), jitter);
+ gst_element_clock_wait (GST_ELEMENT (udpsink), id, NULL);
+ gst_clock_id_free (id);
}
tolen = sizeof(udpsink->theiraddr);