# HG changeset patch # User reimar # Date 1254137053 0 # Node ID f0b559a7c17badc4ee38fa70d4e92397053b2bed # Parent 23c0da51c6604e6b3b57c62127bb48fd5e7182aa 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. diff -r 23c0da51c660 -r f0b559a7c17b mplayer.c --- a/mplayer.c Mon Sep 28 11:10:11 2009 +0000 +++ b/mplayer.c Mon Sep 28 11:24:13 2009 +0000 @@ -3726,7 +3726,7 @@ 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 {