rtpsbcpay: Fix timestamping
authorArun Raghavan <arun@arunraghavan.net>
Sat, 24 Sep 2016 17:52:01 +0000 (23:22 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Sat, 24 Sep 2016 19:50:14 +0000 (01:20 +0530)
commit10a16a632106a7ffdf7df50df5062497cff6d663
treee6b117fcaf14743a5149b2be836eb51fca7cc3b3
parent25526ed7f3a6d289573aa80a481f9c337ec648b3
rtpsbcpay: Fix timestamping

We were just picking the timestamp of the last buffer pushed into our
adapter before we had enough data to push out.

This fixes things to figure out how large each frame is and what
duration it covers, so we can set both the timestamp and duration
correctly.

Also adds some DISCONT handling.
gst/rtp/gstrtpsbcpay.c
gst/rtp/gstrtpsbcpay.h