gst/rtpmanager/rtpjitterbuffer.c: Don't try to reset the clock skew when we have...
authorStefan Kost <ensonic@users.sf.net>
Tue, 11 Mar 2008 10:43:32 +0000 (10:43 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 Aug 2009 01:30:34 +0000 (02:30 +0100)
Original commit message from CVS:
Patch by: Stefan Kost <ensonic@users.sf.net>
* gst/rtpmanager/rtpjitterbuffer.c: (calculate_skew):
Don't try to reset the clock skew when we have no timestamps.
Fixes #519005.

gst/rtpmanager/rtpjitterbuffer.c

index a2c08fb..8aaefeb 100644 (file)
@@ -208,7 +208,7 @@ again:
       GST_TIME_ARGS (gstrtptime), GST_TIME_ARGS (jbuf->base_rtptime),
       GST_TIME_ARGS (send_diff));
 
-  if (jbuf->prev_send_diff != -1) {
+  if (jbuf->prev_send_diff != -1 && time != -1) {
     gint64 delta_diff;
 
     if (send_diff > jbuf->prev_send_diff)