mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
audioencoder: only resync to upstream upon discont in perfect ts mode
... as documented, where discont is marked here if tolerance has been exceeded.
This commit is contained in:
parent
a7ce550d04
commit
871b1584c9
1 changed files with 6 additions and 4 deletions
|
@ -950,10 +950,12 @@ gst_audio_encoder_chain (GstPad * pad, GstBuffer * buffer)
|
|||
gst_audio_encoder_drain (enc);
|
||||
}
|
||||
}
|
||||
/* now re-sync ts */
|
||||
priv->base_ts += diff;
|
||||
gst_audio_encoder_set_base_gp (enc);
|
||||
priv->discont |= discont;
|
||||
if (discont) {
|
||||
/* now re-sync ts */
|
||||
priv->base_ts += diff;
|
||||
gst_audio_encoder_set_base_gp (enc);
|
||||
priv->discont |= discont;
|
||||
}
|
||||
}
|
||||
|
||||
gst_adapter_push (enc->priv->adapter, buffer);
|
||||
|
|
Loading…
Reference in a new issue