splitmuxsink: Split fragment only if queued time is larger than threshold
authorSeungha Yang <seungha@centricular.com>
Wed, 25 Mar 2020 12:20:07 +0000 (21:20 +0900)
committerSeungha Yang <seungha@centricular.com>
Wed, 25 Mar 2020 13:22:31 +0000 (13:22 +0000)
commita40eacabb466834e20321c02da62624fac481ab8
tree38d4e4fff3fa4a595f27fca50b482a7a953ded8b
parent6256fc67e4b07ecf2899999bc10bae486a64f206
splitmuxsink: Split fragment only if queued time is larger than threshold

The queued time includes the duration of the last queued frame
(i.e., new keyframe) so the condition check should not be inclusive.
Note that the new fragment will be cut excluding the last frame
and therefore if the condition is inclusive way,
the fragment might have one frame shorter duration for all keyframe
stream such as jpeg or all-inter video streams.
gst/multifile/gstsplitmuxsink.c