mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
jitterbuffer: avoid using wrong clock-rate
Check for a valid clock-rate before attempting to estimate the npt stop time.
This commit is contained in:
parent
5682e2bf01
commit
8070ae967b
1 changed files with 1 additions and 1 deletions
|
@ -1637,7 +1637,7 @@ push_buffer:
|
||||||
|
|
||||||
/* update the elapsed time when we need to check against the npt stop time. */
|
/* update the elapsed time when we need to check against the npt stop time. */
|
||||||
if (priv->npt_stop != -1 && priv->ext_timestamp != -1
|
if (priv->npt_stop != -1 && priv->ext_timestamp != -1
|
||||||
&& priv->clock_base != -1) {
|
&& priv->clock_base != -1 && priv->clock_rate > 0) {
|
||||||
guint64 ext_time, elapsed, estimated;
|
guint64 ext_time, elapsed, estimated;
|
||||||
guint32 rtp_time;
|
guint32 rtp_time;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue