# HG changeset patch # User reimar # Date 1238256596 0 # Node ID bcc35d0962d637a7934be813a0a8a3161605ee74 # Parent 5f860f568623eea3374e148580dbb1f5711a2055 100l, revert r29082, I missed that the vts comparison should be case-insensitive. diff -r 5f860f568623 -r bcc35d0962d6 stream/stream_dvd.c --- 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);