From 38b9027f8ca79d145422d6e36a47d12885d34a3d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 30 May 2002 19:10:31 +0000 Subject: Slightly better sync if we could not resync the clock. Original commit message from CVS: Slightly better sync if we could not resync the clock. --- sys/oss/gstosssink.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/oss/gstosssink.c') diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index e71bed73..a0d56cb6 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -492,6 +492,8 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf) ioctl (osssink->fd, SNDCTL_DSP_RESET); if (gst_event_discont_get_value (event, GST_FORMAT_TIME, &value)) { + if (!gst_clock_handle_discont (osssink->clock, value)) + gst_oss_clock_set_active (osssink->provided_clock, FALSE); osssink->handled = 0; } osssink->resync = TRUE; -- cgit