audiorate: default to tolerance = 40ms instead of 0
authorTim-Philipp Müller <tim@centricular.net>
Sun, 9 Sep 2012 14:58:36 +0000 (15:58 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 9 Sep 2012 14:58:36 +0000 (15:58 +0100)
People expect audiorate to fix things up and not make things worse
by default, so let's default to a similar tolerance as audiosinks
do. Should help with transcoding and the like, though one might
possible still want higher values then.

gst/audiorate/gstaudiorate.c

index 88a3d5f..76e4c79 100644 (file)
@@ -77,7 +77,7 @@ enum
 };
 
 #define DEFAULT_SILENT     TRUE
-#define DEFAULT_TOLERANCE  0
+#define DEFAULT_TOLERANCE  (40 * GST_MSECOND)
 #define DEFAULT_SKIP_TO_FIRST FALSE
 
 enum