comparison mplayer.c @ 33493:fd4a27bd4ed4

a_pos is also used by update_subtitles, so initialize it always.
author reimar
date Sat, 11 Jun 2011 15:07:37 +0000
parents 52545582f44d
children 52a393df8df8
comparison
equal deleted inserted replaced
33492:60b84f05d865 33493:fd4a27bd4ed4
3794 if (!mpctx->sh_video) { 3794 if (!mpctx->sh_video) {
3795 // handle audio-only case: 3795 // handle audio-only case:
3796 double a_pos = 0; 3796 double a_pos = 0;
3797 // sh_audio can be NULL due to video stream switching 3797 // sh_audio can be NULL due to video stream switching
3798 // TODO: handle this better 3798 // TODO: handle this better
3799 if ((!quiet || end_at.type == END_AT_TIME) && mpctx->sh_audio) 3799 if (mpctx->sh_audio)
3800 a_pos = playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out); 3800 a_pos = playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out);
3801 3801
3802 if (!quiet) 3802 if (!quiet)
3803 print_status(a_pos, 0, 0); 3803 print_status(a_pos, 0, 0);
3804 3804