mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-14 03:15:47 +00:00
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.
This commit is contained in:
parent
6256fc67e4
commit
a40eacabb4
1 changed files with 1 additions and 1 deletions
|
@ -2082,7 +2082,7 @@ need_new_fragment (GstSplitMuxSink * splitmux,
|
|||
|
||||
/* 5us possible rounding error was already accounted around keyframe request */
|
||||
if (splitmux->threshold_timecode != GST_CLOCK_TIME_NONE &&
|
||||
(queued_time >= splitmux->threshold_timecode)) {
|
||||
(queued_time > splitmux->threshold_timecode)) {
|
||||
GST_TRACE_OBJECT (splitmux, "Splitting at timecode mark");
|
||||
return TRUE; /* Timecode threshold */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue