diff --git a/ChangeLog b/ChangeLog index 99698fff63..5c55184d11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-07-12 Wim Taymans + + * ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare): + basesink calculates silence sample correctly for us. + 2006-07-12 Wim Taymans * gst-libs/gst/audio/gstringbuffer.c: (build_linear_format), diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c index ebdd47afd5..19139600c4 100644 --- a/ext/alsa/gstalsasink.c +++ b/ext/alsa/gstalsasink.c @@ -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;