core: give pts as parameter to demuxer_get_current_chapter()
commit642ce15ef770dd5dbea7c7ee16cbf45f6e86feae
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 13 Nov 2010 13:48:26 +0000 (13 15:48 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 13 Nov 2010 14:48:31 +0000 (13 16:48 +0200)
tree5613aa04b5b9186b0a52612a4f0eb9164bb60742
parent1a336d6616c92c7e3a73500f6b4bb7b95e1268c2
core: give pts as parameter to demuxer_get_current_chapter()

demuxer_get_current_chapter() accessed sh_video/sh_audio pts fields to
determine playback position. demux layer shouldn't access those and
the values used weren't quite correct anyway. Give the playback
position as a parameter to the demux layer function instead. Also
change the top-level get_current_chapter() to use get_current_time()
in the timeline case where it didn't refer to demux layer.
libmpdemux/demuxer.c
libmpdemux/demuxer.h
mplayer.c