mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +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. */
|
||||
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;
|
||||
guint32 rtp_time;
|
||||
|
||||
|
|
Loading…
Reference in a new issue