From 848a7f2868cc43f748f48f2f9faebdce29b93d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 19 Dec 2009 21:40:44 +0000 Subject: [PATCH] baseaudiosink: increase default drift tolerance to fix glitches with WMA Increase default drift tolerance to 40ms to avoid glitches with decoders or formats where there's a lot of timestamp jitter for some reason or another (in this case: asf/wma), at least until we implement timestamp smoothing. --- gst-libs/gst/audio/gstbaseaudiosink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index a58e1284bf..fee7c95e37 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -88,9 +88,9 @@ enum /* FIXME, enable pull mode when clock slaving and trick modes are figured out */ #define DEFAULT_CAN_ACTIVATE_PULL FALSE -/* when timestamps or clock slaving drift for more than 10ms we resync. This is +/* when timestamps or clock slaving drift for more than 20ms we resync. This is * a reasonable default */ -#define DEFAULT_DRIFT_TOLERANCE ((20 * GST_MSECOND) / GST_USECOND) +#define DEFAULT_DRIFT_TOLERANCE ((40 * GST_MSECOND) / GST_USECOND) enum {