mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
baseaudioencoder: debug format fixes
This commit is contained in:
parent
cedbedbbca
commit
5a40343102
1 changed files with 2 additions and 3 deletions
|
@ -730,15 +730,14 @@ gst_base_audio_encoder_set_base_gp (GstBaseAudioEncoder * enc)
|
||||||
if (GST_CLOCK_TIME_IS_VALID (ts)) {
|
if (GST_CLOCK_TIME_IS_VALID (ts)) {
|
||||||
enc->priv->base_gp =
|
enc->priv->base_gp =
|
||||||
GST_CLOCK_TIME_TO_FRAMES (enc->priv->base_ts, enc->ctx->state.rate);
|
GST_CLOCK_TIME_TO_FRAMES (enc->priv->base_ts, enc->ctx->state.rate);
|
||||||
GST_DEBUG_OBJECT (enc, "new base gp %" G_GINT64_FORMAT,
|
GST_DEBUG_OBJECT (enc, "new base gp %" G_GINT64_FORMAT, enc->priv->base_gp);
|
||||||
GST_TIME_ARGS (enc->priv->base_gp));
|
|
||||||
} else {
|
} else {
|
||||||
/* should reasonably have a valid base,
|
/* should reasonably have a valid base,
|
||||||
* otherwise start at 0 if we did not already start there earlier */
|
* otherwise start at 0 if we did not already start there earlier */
|
||||||
if (enc->priv->base_gp < 0) {
|
if (enc->priv->base_gp < 0) {
|
||||||
enc->priv->base_gp = 0;
|
enc->priv->base_gp = 0;
|
||||||
GST_DEBUG_OBJECT (enc, "new base gp %" G_GINT64_FORMAT,
|
GST_DEBUG_OBJECT (enc, "new base gp %" G_GINT64_FORMAT,
|
||||||
GST_TIME_ARGS (enc->priv->base_gp));
|
enc->priv->base_gp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue