ext/alsa/gstalsasink.c: basesink calculates silence sample correctly for us.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 12 Jul 2006 10:59:55 +0000 (10:59 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 12 Jul 2006 10:59:55 +0000 (10:59 +0000)
Original commit message from CVS:
* ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare):
basesink calculates silence sample correctly for us.

ChangeLog
ext/alsa/gstalsasink.c

index 99698ff..5c55184 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-07-12  Wim Taymans  <wim@fluendo.com>
 
+       * ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare):
+       basesink calculates silence sample correctly for us.
+
+2006-07-12  Wim Taymans  <wim@fluendo.com>
+
        * gst-libs/gst/audio/gstringbuffer.c: (build_linear_format),
        (gst_ring_buffer_debug_spec_caps), (gst_ring_buffer_parse_caps):
        Calculate correct silence samples so we don't fill our ringbuffer
index ebdd47a..1913960 100644 (file)
@@ -657,10 +657,6 @@ gst_alsasink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec)
   alsa->bytes_per_sample = spec->bytes_per_sample;
   spec->segsize = alsa->period_size * spec->bytes_per_sample;
   spec->segtotal = alsa->buffer_size / alsa->period_size;
-  spec->silence_sample[0] = 0;
-  spec->silence_sample[1] = 0;
-  spec->silence_sample[2] = 0;
-  spec->silence_sample[3] = 0;
 
   return TRUE;