summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-12-27 23:00:34 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-12-27 23:00:34 +0000
commit6eae42d06c8d20900e60f352cc1d6b4b1b4f4c44 (patch)
treedb5015030b9b90a36aaa3b4e8c723d21a89e9904
parent9da7016fcb0cd73706e10bbf8468bdef33c34ca3 (diff)
downloadgst-plugins-bad-6eae42d06c8d20900e60f352cc1d6b4b1b4f4c44.tar.gz
gst-plugins-bad-6eae42d06c8d20900e60f352cc1d6b4b1b4f4c44.tar.bz2
gst-plugins-bad-6eae42d06c8d20900e60f352cc1d6b4b1b4f4c44.zip
Update to new element sync API
Original commit message from CVS: Update to new element sync API
-rw-r--r--ext/sdl/sdlvideosink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c
index 24646775..5c7fdee4 100644
--- a/ext/sdl/sdlvideosink.c
+++ b/ext/sdl/sdlvideosink.c
@@ -447,8 +447,10 @@ gst_sdlvideosink_chain (GstPad *pad, GstBuffer *buf)
GST_DEBUG (0,"videosink: clock wait: %llu", GST_BUFFER_TIMESTAMP(buf));
if (sdlvideosink->clock) {
- gst_element_clock_wait (GST_ELEMENT (sdlvideosink),
- sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf), NULL);
+ GstClockID id = gst_clock_new_single_shot_id (sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf));
+
+ gst_element_clock_wait (GST_ELEMENT (sdlvideosink), id, NULL);
+ gst_clock_id_free (id);
}
if (!gst_sdlvideosink_lock(sdlvideosink)) {