core: move video pos/length query functions from demux to core
commit9a663ffec62720931f34ae2742a32652d1de5f8e
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sun, 7 Nov 2010 22:54:32 +0000 (8 00:54 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Mon, 8 Nov 2010 16:05:12 +0000 (8 18:05 +0200)
tree6fe61b81610e178b760f3a5f4e0403fe4690d23b
parent3628a903f40943740ff97a03a106d9a5208fae76
core: move video pos/length query functions from demux to core

Move functions to query current playback position, percentage position
and total video length from from the demuxer layer to top level. The
functions need access to playback state that doesn't belong on the
demuxing level. Make the new functions more capable and simplify some
code that can now rely on them. This fixes some errors in displayed in
OSD and slave mode information when using timeline (ordered chapters).
command.c
libmpdemux/demux_demuxers.c
libmpdemux/demuxer.c
libmpdemux/demuxer.h
mp_core.h
mplayer.c