mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
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:
parent
5d96fd4bf1
commit
2e585ac7ac
1 changed files with 2 additions and 2 deletions
|
@ -223,8 +223,6 @@ gst_audio_resample_init (GstAudioResample * resample,
|
||||||
|
|
||||||
resample->quality = SPEEX_RESAMPLER_QUALITY_DEFAULT;
|
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_function (trans->srcpad, gst_audio_resample_query);
|
||||||
gst_pad_set_query_type_function (trans->srcpad,
|
gst_pad_set_query_type_function (trans->srcpad,
|
||||||
gst_audio_resample_query_type);
|
gst_audio_resample_query_type);
|
||||||
|
@ -236,6 +234,8 @@ gst_audio_resample_start (GstBaseTransform * base)
|
||||||
{
|
{
|
||||||
GstAudioResample *resample = GST_AUDIO_RESAMPLE (base);
|
GstAudioResample *resample = GST_AUDIO_RESAMPLE (base);
|
||||||
|
|
||||||
|
resample->need_discont = TRUE;
|
||||||
|
|
||||||
resample->t0 = GST_CLOCK_TIME_NONE;
|
resample->t0 = GST_CLOCK_TIME_NONE;
|
||||||
resample->in_offset0 = GST_BUFFER_OFFSET_NONE;
|
resample->in_offset0 = GST_BUFFER_OFFSET_NONE;
|
||||||
resample->out_offset0 = GST_BUFFER_OFFSET_NONE;
|
resample->out_offset0 = GST_BUFFER_OFFSET_NONE;
|
||||||
|
|
Loading…
Reference in a new issue