event: Make sure that timestamp + diff in QoS events is never smaller than 0
authorSebastian Dröge <sebastian@centricular.com>
Mon, 31 Aug 2015 12:35:11 +0000 (15:35 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 25 Sep 2015 21:55:18 +0000 (23:55 +0200)
commita3513d6e977853a6f4d8a6062152f2b664ab8f34
treea9fe9a2f44d7f5be1fc62da416a5b55e1a01330f
parent697093c7d405257738e8e67cbe4a14bb88fc79a2
event: Make sure that timestamp + diff in QoS events is never smaller than 0

When a running-time-offset is stored in the event, it could become smaller
than 0 although the event is otherwise correct. This can happen when pad
offsets are used.

To prevent this, we set the timestamp to -diff, so that in the end the sum of
both is exactly 0.

https://bugzilla.gnome.org/show_bug.cgi?id=754356
gst/gstevent.c