mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
basesink: improve rate calculation
When there is no duration on input buffers, assume the rate is 1.0 instead of (the undefined) 0.0.
This commit is contained in:
parent
9661a713ba
commit
79665e8247
1 changed files with 1 additions and 1 deletions
|
@ -2706,7 +2706,7 @@ gst_base_sink_perform_qos (GstBaseSink * sink, gboolean dropped)
|
|||
gst_guint64_to_gdouble (priv->avg_pt) /
|
||||
gst_guint64_to_gdouble (priv->avg_duration);
|
||||
else
|
||||
rate = 0.0;
|
||||
rate = 1.0;
|
||||
|
||||
if (GST_CLOCK_TIME_IS_VALID (priv->last_left)) {
|
||||
if (dropped || priv->avg_rate < 0.0) {
|
||||
|
|
Loading…
Reference in a new issue