mirror of
https://github.com/mpv-player/mpv
synced 2024-12-16 03:45:23 +00:00
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
This commit is contained in:
parent
8d376de96f
commit
f5d01796a8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user