From c89863027981c07b4ae58d0e1720ecda92dcddf3 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 4 Jan 2008 20:36:15 +0000 Subject: mpegplayer seek tweak: Have video keep the time and duration of the last decoded frame up to date at all times. Make sure streams that have reported and EOS condition are placed back on active list when seeking which it seems is the cause of a video glitch where the initial frame may be presented after a seek but video playback wouldn't restart. Set logical seek time to video start in the parser after after initial load. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15995 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/mpeg_parser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/mpegplayer/mpeg_parser.c') diff --git a/apps/plugins/mpegplayer/mpeg_parser.c b/apps/plugins/mpegplayer/mpeg_parser.c index 5b863da..167f07d 100644 --- a/apps/plugins/mpegplayer/mpeg_parser.c +++ b/apps/plugins/mpegplayer/mpeg_parser.c @@ -1141,6 +1141,8 @@ int parser_init_stream(void) str_parser.start_pts = video_str.start_pts; str_parser.end_pts = video_str.end_pts; } + + str_parser.last_seek_time = str_parser.start_pts; } else { -- cgit v1.1