mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
qtmux: Only write "gap" edit list if there is a non-zero gap
https://bugzilla.gnome.org/show_bug.cgi?id=774840
This commit is contained in:
parent
153a8ae752
commit
9acc0b5d0e
1 changed files with 7 additions and 4 deletions
|
@ -2529,12 +2529,15 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux)
|
|||
lateness = gst_util_uint64_scale_round (diff,
|
||||
qtmux->timescale, GST_SECOND);
|
||||
|
||||
GST_DEBUG_OBJECT (qtmux, "Pad %s is a late stream by %" GST_TIME_FORMAT,
|
||||
if (lateness > 0) {
|
||||
GST_DEBUG_OBJECT (qtmux,
|
||||
"Pad %s is a late stream by %" GST_TIME_FORMAT,
|
||||
GST_PAD_NAME (qtpad->collect.pad), GST_TIME_ARGS (lateness));
|
||||
|
||||
atom_trak_set_elst_entry (qtpad->trak, 0, lateness, (guint32) - 1,
|
||||
(guint32) (1 * 65536.0));
|
||||
}
|
||||
}
|
||||
|
||||
/* Always write an edit list for the whole track. In general this is not
|
||||
* necessary except for the case of having a gap or DTS adjustment but
|
||||
|
|
Loading…
Reference in a new issue