qtdemux: drain the adapter before pushing EOS
authorThiago Santos <ts.santos@sisa.samsung.com>
Thu, 12 Dec 2013 13:50:27 +0000 (10:50 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Dec 2013 15:00:27 +0000 (12:00 -0300)
commita82f3418fdc1e7787828f0a2a946b12e6f00332f
treefcdfef27b025991cc912a6c3f8ebf0846ffddf47
parent9dd6e22ba9563d6cac008d65d5e1c14edda66589
qtdemux: drain the adapter before pushing EOS

In a fragmented scenario, qtdemux is operating in push mode
and it gets a fragmented buffer. While processing its data
downstream gets unlinked (or a input-selector changes its
active pad and returns not-linked). Qtdemux stops processing
this fragment and returns not-linked upstream, leaving the
remaining data in its adapter.

When it gets an EOS it should make sure that all the data it
had received is pushed before pushing EOS.
gst/isomp4/qtdemux.c