Commit ebc88d77 authored by Wim Taymans's avatar Wim Taymans
Browse files

ext/alsa/gstalsasink.c: basesink calculates silence sample correctly for us.

Original commit message from CVS:
* ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare):
basesink calculates silence sample correctly for us.
parent 46d86d80
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> 2006-07-12 Wim Taymans <wim@fluendo.com>
   
* gst-libs/gst/audio/gstringbuffer.c: (build_linear_format), * gst-libs/gst/audio/gstringbuffer.c: (build_linear_format),
......
...@@ -657,10 +657,6 @@ gst_alsasink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec) ...@@ -657,10 +657,6 @@ gst_alsasink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec)
alsa->bytes_per_sample = spec->bytes_per_sample; alsa->bytes_per_sample = spec->bytes_per_sample;
spec->segsize = alsa->period_size * spec->bytes_per_sample; spec->segsize = alsa->period_size * spec->bytes_per_sample;
spec->segtotal = alsa->buffer_size / alsa->period_size; 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; return TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment