From 95d60aa0190533226974a46fd612fd6face91b7b Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 28 Sep 2009 11:24:13 +0000 Subject: Use a_pos to update subtitle for audio-only files instead of mpctx->sh_audio->pts which e.g. for mp3 in AVI never has a useful value. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29727 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index aa59ab7088..42174cf2c1 100644 --- a/mplayer.c +++ b/mplayer.c @@ -3726,7 +3726,7 @@ if(!mpctx->sh_video) { if(end_at.type == END_AT_TIME && end_at.pos < a_pos) mpctx->eof = PT_NEXT_ENTRY; - update_subtitles(NULL, mpctx->sh_audio->pts, mpctx->d_sub, 0); + update_subtitles(NULL, a_pos, mpctx->d_sub, 0); update_osd_msg(); } else { -- cgit v1.2.3