[MPlayer-dev-eng] [PATCH] Fix ID_SEEKABLE

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu May 28 17:28:38 CEST 2009


On Wed, May 27, 2009 at 07:54:28PM -0400, Jason Tackaberry wrote:
> Index: mplayer.c
> ===================================================================
> --- mplayer.c	(revision 29242)
> +++ mplayer.c	(working copy)
> @@ -3492,7 +3492,7 @@
>      mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_AUDIO_NCH=%d\n", mpctx->sh_audio->channels);
>    }
>    mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_LENGTH=%.2lf\n", demuxer_get_time_length(mpctx->demuxer));
> -  mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_SEEKABLE=%d\n", mpctx->stream->seek ? 1 : 0);
> +  mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_SEEKABLE=%d\n", mpctx->demuxer->seekable ? 1 : 0);
>    if (mpctx->demuxer) {

Given those last two lines that certainly isn't correct (or the check itself is nonsense).
> +  mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_SEEKABLE=%d\n",
> +         mpctx->stream->seek && (!mpctx->demuxer || mpctx->demuxer->seekable));

probably is more correct.



More information about the MPlayer-dev-eng mailing list