mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
Update to new element sync API
Original commit message from CVS: Update to new element sync API
This commit is contained in:
parent
9da7016fcb
commit
6eae42d06c
1 changed files with 4 additions and 2 deletions
|
@ -447,8 +447,10 @@ gst_sdlvideosink_chain (GstPad *pad, GstBuffer *buf)
|
||||||
|
|
||||||
GST_DEBUG (0,"videosink: clock wait: %llu", GST_BUFFER_TIMESTAMP(buf));
|
GST_DEBUG (0,"videosink: clock wait: %llu", GST_BUFFER_TIMESTAMP(buf));
|
||||||
if (sdlvideosink->clock) {
|
if (sdlvideosink->clock) {
|
||||||
gst_element_clock_wait (GST_ELEMENT (sdlvideosink),
|
GstClockID id = gst_clock_new_single_shot_id (sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf));
|
||||||
sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf), NULL);
|
|
||||||
|
gst_element_clock_wait (GST_ELEMENT (sdlvideosink), id, NULL);
|
||||||
|
gst_clock_id_free (id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gst_sdlvideosink_lock(sdlvideosink)) {
|
if (!gst_sdlvideosink_lock(sdlvideosink)) {
|
||||||
|
|
Loading…
Reference in a new issue