mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
audiodecoder: really discard NULL decoded frame altogether
... including any timestamp, rather than having that one influence base_ts.
This commit is contained in:
parent
f70ca6d4cb
commit
856a5dd581
1 changed files with 3 additions and 3 deletions
|
@ -795,15 +795,15 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
||||||
frames--;
|
frames--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G_UNLIKELY (!buf))
|
||||||
|
goto exit;
|
||||||
|
|
||||||
/* lock on */
|
/* lock on */
|
||||||
if (G_UNLIKELY (!GST_CLOCK_TIME_IS_VALID (priv->base_ts))) {
|
if (G_UNLIKELY (!GST_CLOCK_TIME_IS_VALID (priv->base_ts))) {
|
||||||
priv->base_ts = ts;
|
priv->base_ts = ts;
|
||||||
GST_DEBUG_OBJECT (dec, "base_ts now %" GST_TIME_FORMAT, GST_TIME_ARGS (ts));
|
GST_DEBUG_OBJECT (dec, "base_ts now %" GST_TIME_FORMAT, GST_TIME_ARGS (ts));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_UNLIKELY (!buf))
|
|
||||||
goto exit;
|
|
||||||
|
|
||||||
/* slightly convoluted approach caters for perfect ts if subclass desires */
|
/* slightly convoluted approach caters for perfect ts if subclass desires */
|
||||||
if (GST_CLOCK_TIME_IS_VALID (ts)) {
|
if (GST_CLOCK_TIME_IS_VALID (ts)) {
|
||||||
if (dec->priv->tolerance > 0) {
|
if (dec->priv->tolerance > 0) {
|
||||||
|
|
Loading…
Reference in a new issue