summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-05-30 19:10:31 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-05-30 19:10:31 +0000
commit38b9027f8ca79d145422d6e36a47d12885d34a3d (patch)
treed46e208706a5404c2203caa5e07e403af03c72e6 /sys
parentdd75c7776c598ffa58b4038c4bb77fa97d86a95c (diff)
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/oss/gstosssink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c
index e71bed733..a0d56cb60 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;