From b60e7f8ba5d70806e8ca54e58295cb4f3a394a5c Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 30 May 2009 13:15:53 +0000 Subject: 100l, demuxer info tags are _not_ case sensitive, so use strcasecmp. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29329 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index dd010f0cbd..01d13a8da6 100644 --- a/mplayer.c +++ b/mplayer.c @@ -452,7 +452,7 @@ static char *get_demuxer_info (char *tag) { return NULL; for (n = 0; info[2*n] != NULL ; n++) - if (!strcmp (info[2*n], tag)) + if (!strcasecmp (info[2*n], tag)) break; return info[2*n+1] ? strdup (info[2*n+1]) : NULL; -- cgit v1.2.3 From 960285ea46a70897c3baa4f0f6a33893caacbb16 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 31 May 2009 12:48:53 +0000 Subject: 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] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29331 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 01d13a8da6..d64f5268e2 100644 --- a/mplayer.c +++ b/mplayer.c @@ -3492,7 +3492,8 @@ if (mpctx->global_sub_size) { 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); -- cgit v1.2.3