Mercurial > mplayer.hg
changeset 29045:bcc35d0962d6
100l, revert r29082, I missed that the vts comparison should be case-insensitive.
author | reimar |
---|---|
date | Sat, 28 Mar 2009 16:09:56 +0000 |
parents | 5f860f568623 |
children | 54d4e18aa1f4 |
files | stream/stream_dvd.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvd.c Sat Mar 28 15:54:08 2009 +0000 +++ b/stream/stream_dvd.c Sat Mar 28 16:09:56 2009 +0000 @@ -1108,7 +1108,11 @@ spriv=calloc(1, sizeof(struct stream_priv_s)); spriv->device = strdup(dirname(stream->url)); - if(sscanf(filename, "vts_%02d_", &spriv->title)!=1) + if(!strncasecmp(filename,"vts_",4)) + { + if(sscanf(filename+3, "_%02d_", &spriv->title)!=1) + spriv->title=1; + }else spriv->title=1; free(filename);