qtdemux: Don't push GAP event if first buffer is within 1s 51/248651/1 tizen_5.5
authorEdward Hervey <edward@centricular.com>
Wed, 13 Dec 2017 10:35:37 +0000 (11:35 +0100)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 1 Dec 2020 07:11:27 +0000 (16:11 +0900)
commit8de8721e71774e0ade906b3a1db2f0f7c7c1d848
treee0e53d4ed81422a8c7881d408a57c2bf631245a8
parenteb3e279f28434ba6a94bd24a745dca902d74163e
qtdemux: Don't push GAP event if first buffer is within 1s

If we saw empty segments, we previously unconditionally pushed a
GAP event downstream regardless of the duration of that empty
segment.

In order to avoid issues with initial negotiation of downstream elements
(which would negotiate to something before receiving any data due to
that initial GAP event), check if there's at least a second of difference
(like we do for other GAP-related checks in qtdemux) before
deciding to push a GAP event downstream.

Change-Id: I30318848c6f16cd04cf5bc776b77acd8ec0f3d0e
gst/isomp4/qtdemux.c