diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-28 16:09:56 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-28 16:09:56 +0000 |
commit | f5d01796a861b5b3e926584bed7b6e073595f0d8 (patch) | |
tree | bc413756ff5cca9a9ae27746636ce119c4d2ce2f /stream/stream_dvd.c | |
parent | 8d376de96fb5e3456846f4f8368bb644213ba380 (diff) | |
download | mpv-f5d01796a861b5b3e926584bed7b6e073595f0d8.tar.bz2 mpv-f5d01796a861b5b3e926584bed7b6e073595f0d8.tar.xz |
100l, revert r29082, I missed that the vts comparison should be case-insensitive.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29084 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r-- | stream/stream_dvd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index c383598895..70a94303e6 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -1108,7 +1108,11 @@ static int ifo_stream_open (stream_t *stream, int mode, void *opts, int *file_fo 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); |