projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5682e2b
)
jitterbuffer: avoid using wrong clock-rate
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 25 Nov 2009 16:38:23 +0000
(10:38 -0600)
committer
Wim Taymans
<wim@metal.(none)>
Wed, 25 Nov 2009 16:38:23 +0000
(10:38 -0600)
Check for a valid clock-rate before attempting to estimate the npt
stop time.
gst/rtpmanager/gstrtpjitterbuffer.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/gstrtpjitterbuffer.c
b/gst/rtpmanager/gstrtpjitterbuffer.c
index c37bd6b06b724bf586d1a393205bf7c5e83e9998..1fce103ba5969c8e9086c8988b80ed65ca0061d8 100644
(file)
--- a/
gst/rtpmanager/gstrtpjitterbuffer.c
+++ b/
gst/rtpmanager/gstrtpjitterbuffer.c
@@
-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;