mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
basesink: rename variable
Rename an internal variable to better reflact what its value means.
This commit is contained in:
parent
61d84b9469
commit
dc0120fe28
1 changed files with 7 additions and 7 deletions
|
@ -201,7 +201,7 @@ struct _GstBaseSinkPrivate
|
||||||
GstClockTime eos_rtime;
|
GstClockTime eos_rtime;
|
||||||
|
|
||||||
/* last buffer that arrived in time, running time */
|
/* last buffer that arrived in time, running time */
|
||||||
GstClockTime last_in_time;
|
GstClockTime last_render_time;
|
||||||
/* when the last buffer left the sink, running time */
|
/* when the last buffer left the sink, running time */
|
||||||
GstClockTime last_left;
|
GstClockTime last_left;
|
||||||
|
|
||||||
|
@ -2764,7 +2764,7 @@ gst_base_sink_reset_qos (GstBaseSink * sink)
|
||||||
|
|
||||||
priv = sink->priv;
|
priv = sink->priv;
|
||||||
|
|
||||||
priv->last_in_time = GST_CLOCK_TIME_NONE;
|
priv->last_render_time = GST_CLOCK_TIME_NONE;
|
||||||
priv->earliest_in_time = GST_CLOCK_TIME_NONE;
|
priv->earliest_in_time = GST_CLOCK_TIME_NONE;
|
||||||
priv->last_left = GST_CLOCK_TIME_NONE;
|
priv->last_left = GST_CLOCK_TIME_NONE;
|
||||||
priv->avg_duration = GST_CLOCK_TIME_NONE;
|
priv->avg_duration = GST_CLOCK_TIME_NONE;
|
||||||
|
@ -2830,21 +2830,21 @@ gst_base_sink_is_too_late (GstBaseSink * basesink, GstMiniObject * obj,
|
||||||
GST_TIME_ARGS (max_lateness));
|
GST_TIME_ARGS (max_lateness));
|
||||||
/* !!emergency!!, if we did not receive anything valid for more than a
|
/* !!emergency!!, if we did not receive anything valid for more than a
|
||||||
* second, render it anyway so the user sees something */
|
* second, render it anyway so the user sees something */
|
||||||
if (GST_CLOCK_TIME_IS_VALID (priv->last_in_time) &&
|
if (GST_CLOCK_TIME_IS_VALID (priv->last_render_time) &&
|
||||||
rstart - priv->last_in_time > GST_SECOND) {
|
rstart - priv->last_render_time > GST_SECOND) {
|
||||||
late = FALSE;
|
late = FALSE;
|
||||||
GST_ELEMENT_WARNING (basesink, CORE, CLOCK,
|
GST_ELEMENT_WARNING (basesink, CORE, CLOCK,
|
||||||
(_("A lot of buffers are being dropped.")),
|
(_("A lot of buffers are being dropped.")),
|
||||||
("There may be a timestamping problem, or this computer is too slow."));
|
("There may be a timestamping problem, or this computer is too slow."));
|
||||||
GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, basesink,
|
GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, basesink,
|
||||||
"**emergency** last buffer at %" GST_TIME_FORMAT " > GST_SECOND",
|
"**emergency** last buffer at %" GST_TIME_FORMAT " > GST_SECOND",
|
||||||
GST_TIME_ARGS (priv->last_in_time));
|
GST_TIME_ARGS (priv->last_render_time));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (!late || !GST_CLOCK_TIME_IS_VALID (priv->last_in_time)) {
|
if (!late || !GST_CLOCK_TIME_IS_VALID (priv->last_render_time)) {
|
||||||
priv->last_in_time = rstart;
|
priv->last_render_time = rstart;
|
||||||
/* the next allowed input timestamp */
|
/* the next allowed input timestamp */
|
||||||
if (priv->throttle_time > 0)
|
if (priv->throttle_time > 0)
|
||||||
priv->earliest_in_time = rstart + priv->throttle_time;
|
priv->earliest_in_time = rstart + priv->throttle_time;
|
||||||
|
|
Loading…
Reference in a new issue