qtmux: Clear edit lists every time we recalculate them
We recalculate them, so any old information has to be forgotten.
Otherwise we write invalid edit lists when writing headers multiple
times.
https://bugzilla.gnome.org/show_bug.cgi?id=778330
diff --git a/gst/isomp4/atoms.c b/gst/isomp4/atoms.c
index 64c121f..4c0453f 100644
--- a/gst/isomp4/atoms.c
+++ b/gst/isomp4/atoms.c
@@ -3716,6 +3716,15 @@
*e = *entry;
}
+void
+atom_trak_edts_clear (AtomTRAK * trak)
+{
+ if (trak->edts) {
+ atom_edts_clear (trak->edts);
+ trak->edts = NULL;
+ }
+}
+
/*
* Update an entry in this trak edits list, creating it if needed.
* index is the index of the entry to update, or create if it's past the end.