sbcdepay: Add property to ignore input timestamps
authorSebastian Dröge <sebastian@centricular.com>
Tue, 5 Sep 2017 08:41:35 +0000 (11:41 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 28 Sep 2017 11:15:12 +0000 (14:15 +0300)
commit58f0eabd61d190a936c4beb3e084df984903a98f
treea10e7447abbad8c04bb722bbdf8276bc8aa7ea71
parentc0622addf68be0d49c3fea7967934abb6cdde7f4
sbcdepay: Add property to ignore input timestamps

This then just counts samples and calculates the output timestamps based
on that and the very first observed timestamp. The timestamps on the
buffers are continued to be used to detect discontinuities that are too
big and reset the counter at that point.

When receiving data via Bluetooth, many devices put completely wrong
values into the RTP timestamp field. For example iOS seems to put a
timestamp in milliseconds in there, instead of something based on the
current sample offset (RTP clock-rate == sample rate).

https://bugzilla.gnome.org/show_bug.cgi?id=787297
gst/rtp/gstrtpsbcdepay.c
gst/rtp/gstrtpsbcdepay.h