Mercurial > mplayer.hg
changeset 29043:3dcad5e40995
Simplify extracting title number from ifo name
author | reimar |
---|---|
date | Sat, 28 Mar 2009 15:53:32 +0000 |
parents | c198fbb7172e |
children | 5f860f568623 |
files | stream/stream_dvd.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvd.c Fri Mar 27 22:56:56 2009 +0000 +++ b/stream/stream_dvd.c Sat Mar 28 15:53:32 2009 +0000 @@ -1108,12 +1108,8 @@ spriv=calloc(1, sizeof(struct stream_priv_s)); spriv->device = strdup(dirname(stream->url)); - if(!strncasecmp(filename,"vts_",4)) - { - if(sscanf(filename+3, "_%02d_", &spriv->title)!=1) + if(sscanf(filename, "vts_%02d_", &spriv->title)!=1) spriv->title=1; - }else - spriv->title=1; free(filename); free(stream->url);