audioresample: On the first buffer we need discont handling

Otherwise we won't get upstream timestamps and everything and all
output buffers would have -1 timestamps.
This commit is contained in:
Sebastian Dröge 2009-08-21 10:00:49 +02:00
parent 5d96fd4bf1
commit 2e585ac7ac

View file

@ -223,8 +223,6 @@ gst_audio_resample_init (GstAudioResample * resample,
resample->quality = SPEEX_RESAMPLER_QUALITY_DEFAULT;
resample->need_discont = FALSE;
gst_pad_set_query_function (trans->srcpad, gst_audio_resample_query);
gst_pad_set_query_type_function (trans->srcpad,
gst_audio_resample_query_type);
@ -236,6 +234,8 @@ gst_audio_resample_start (GstBaseTransform * base)
{
GstAudioResample *resample = GST_AUDIO_RESAMPLE (base);
resample->need_discont = TRUE;
resample->t0 = GST_CLOCK_TIME_NONE;
resample->in_offset0 = GST_BUFFER_OFFSET_NONE;
resample->out_offset0 = GST_BUFFER_OFFSET_NONE;