# HG changeset patch # User reimar # Date 1307804857 0 # Node ID fd4a27bd4ed48df682eafd663da42796730fa75e # Parent 60b84f05d86560b0e7e1e64428abb28df11b0903 a_pos is also used by update_subtitles, so initialize it always. diff -r 60b84f05d865 -r fd4a27bd4ed4 mplayer.c --- a/mplayer.c Sat Jun 11 14:54:59 2011 +0000 +++ b/mplayer.c Sat Jun 11 15:07:37 2011 +0000 @@ -3796,7 +3796,7 @@ double a_pos = 0; // sh_audio can be NULL due to video stream switching // TODO: handle this better - if ((!quiet || end_at.type == END_AT_TIME) && mpctx->sh_audio) + if (mpctx->sh_audio) a_pos = playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out); if (!quiet)