# HG changeset patch # User reimar # Date 1243774133 0 # Node ID 6825c69f6d84f463fe7d6d900e91c1afb4e47d9c # Parent 4a1c217a844b2fdcb30235bcc8b01cd00db89a5f Make ID_SEEKABLE depend on both the stream and the demuxer being seekable, instead of only depending on the stream. This makes the value correctly 0 e.g. for AVI files without index. Patch by Jason Tackaberry [tack urandom ca] diff -r 4a1c217a844b -r 6825c69f6d84 mplayer.c --- a/mplayer.c Sat May 30 13:18:57 2009 +0000 +++ b/mplayer.c Sun May 31 12:48:53 2009 +0000 @@ -3492,7 +3492,8 @@ 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->stream->seek && (!mpctx->demuxer || mpctx->demuxer->seekable)); if (mpctx->demuxer) { if (mpctx->demuxer->num_chapters == 0) stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_NUM_CHAPTERS, &mpctx->demuxer->num_chapters);