adaptivedemux: Also consider more seek flags as "snap" seeks
authorEdward Hervey <edward@centricular.com>
Thu, 7 Jul 2016 15:20:58 +0000 (17:20 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 7 Jul 2016 15:28:57 +0000 (17:28 +0200)
commite4c955e4d794c5cd69273ccb5e7e25f34dec8d14
treef8d7df86bbef903bc17f10b9fea1c52099eeadff
parent2aaeb061c421b3499317aac18eb52312ef0c5fcd
adaptivedemux: Also consider more seek flags as "snap" seeks

In the case of KEY_UNIT and TRICKMODE_KEY_UNITS seeks, we want to
"snap" to the closest fragment.

Without this, we end up pushing out a segment which does not match
the first fragment timestamp being pushed out, resulting in one or
more buffers being eventually dropped because they are out of segment.
gst-libs/gst/adaptivedemux/gstadaptivedemux.c