adaptivedemux: prevent early EOS when switching at last fragment
authorThiago Santos <thiagoss@osg.samsung.com>
Fri, 16 Jan 2015 19:18:35 +0000 (16:18 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Fri, 16 Jan 2015 20:07:22 +0000 (17:07 -0300)
commit3a79bd91c72b9640b4f573f96dcbd11daf93ff14
tree68879d97086b0c8d0462633f3a85233945fbbafc
parent6dca8f5ccee70f4fc5df7871efe4d16952731be0
adaptivedemux: prevent early EOS when switching at last fragment

Check if there is a next fragment before advancing to avoid causing
a bitrate switch (and maybe exposing new pads) only to push EOS.
This causes playback to stop with an error instead of properly
finishing with EOS message.
gst-libs/gst/adaptivedemux/gstadaptivedemux.c