qtmux: Revert commits that set DTS and duration on buffers unconditionally
authorSebastian Dröge <sebastian@centricular.com>
Tue, 22 Nov 2016 13:59:19 +0000 (15:59 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 23 Nov 2016 16:17:06 +0000 (18:17 +0200)
commit351f2fca0a39cad58436ab83ae76ea6439de11e8
tree8a8eae6645c997baab97755f7a33cf6ed9bb6334
parent9acc0b5d0eaf90aac845d5519ab78c613bd75692
qtmux: Revert commits that set DTS and duration on buffers unconditionally

39f7e52266fde3b3c035e22cbcbb2bb1fa207b17 was setting the buffer duration
to 0 if is not valid, under the assumption that this is "the last"
buffer and no others are coming next. This is wrong, last_buf is the
previous buffer and not the very last one.

4e3c13c87c258c9c95e2217d32ab314d12b5fffc was setting DTS to 0 if there
was none. This will set DTS to 0 for all e.g. audio streams, completely
messing up calculations if streams don't start at 0.

https://bugzilla.gnome.org/show_bug.cgi?id=774840
gst/isomp4/gstqtmux.c