mxfdemux: Fix seeking to the end of file
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 9 Feb 2009 06:33:41 +0000 (07:33 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 9 Feb 2009 06:33:41 +0000 (07:33 +0100)
commitdc408bb28bbcaa8e879ced16c5ee0007c1c54cf3
treeb07eb3f828fd15fd0804211d43cbf15807e693e6
parentf169201c24798f950e243f0a9e048a587edd6295
mxfdemux: Fix seeking to the end of file

When seeking to a position where no new offset can be
found or after the end of a track don't set the EOS flag
to TRUE as we don't (and can't) push EOS downstream then.
Instead set the current essence track position to then
end of the essence track and let the loop or chain function
set everything to EOS and push EOS downstream.

Also restart the pad's task if resolving metadata failed
(playback will continue as before) and return FALSE from
the seek if no new offset could be found.
gst/mxf/mxfdemux.c