[MPlayer-cvslog] r33581 - trunk/mplayer.c

Clément Bœsch ubitux at gmail.com
Sat Jun 11 17:41:00 CEST 2011


On Sat, Jun 11, 2011 at 05:07:41PM +0200, reimar wrote:
> Author: reimar
> Date: Sat Jun 11 17:07:37 2011
> New Revision: 33581
> 
> Log:
> a_pos is also used by update_subtitles, so initialize it always.
> 
> Modified:
>    trunk/mplayer.c
> 
> Modified: trunk/mplayer.c
> ==============================================================================
> --- trunk/mplayer.c	Sat Jun 11 16:54:59 2011	(r33580)
> +++ trunk/mplayer.c	Sat Jun 11 17:07:37 2011	(r33581)
> @@ -3796,7 +3796,7 @@ goto_enable_cache:
>                  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)

This sounds weird to me; we are in the case where there is no video. Is
there a chance the audio is not set too? Also, why update subtitles if no
video?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20110611/8b89d390/attachment.asc>


More information about the MPlayer-cvslog mailing list