audiobasesrc: Round down segsize to an integer number of samples

https://bugzilla.gnome.org/show_bug.cgi?id=796704
diff --git a/gst-libs/gst/audio/gstaudiobasesrc.c b/gst-libs/gst/audio/gstaudiobasesrc.c
index e8063eb..7761e51 100644
--- a/gst-libs/gst/audio/gstaudiobasesrc.c
+++ b/gst-libs/gst/audio/gstaudiobasesrc.c
@@ -540,6 +540,8 @@
 
   /* calculate suggested segsize and segtotal */
   spec->segsize = rate * bpf * spec->latency_time / GST_MSECOND;
+  /* Round to an integer number of samples */
+  spec->segsize -= spec->segsize % bpf;
   spec->segtotal = spec->buffer_time / spec->latency_time;
 
   GST_OBJECT_UNLOCK (src);