oggdemux: Timestamp tracking fixes
authorJan Schmidt <jan@centricular.com>
Fri, 3 Mar 2017 13:22:17 +0000 (00:22 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 3 Mar 2017 13:30:37 +0000 (00:30 +1100)
commitfe1f47aa17f0d835810f2b0c04e32177ff291c1f
tree7fbf74e72cdd85006a375061bb585aa95cc895e1
parent342132a7006280c895f20e7c5839297c7a15eda8
oggdemux: Timestamp tracking fixes

In gst_ogg_demux_do_seek() when calculating the
keyframe time, account for a non-zero start-time

Handle a discontinuous first packet in
gst_ogg_demux_setup_first_granule() because that's pretty
normal after a seek. Also differentiate between a genuinely
truncated first packet and just bailing out early, by not using
granule = -1 as an error code.

Make the debug output logs clearer about which timestamps
are stream times (PTS) and which are ogg timestamps.
ext/ogg/gstoggdemux.c