diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-28 15:53:32 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-28 15:53:32 +0000 |
commit | df1af7047583d6b963301495490b12aad178f1e5 (patch) | |
tree | df14104105e60549ac1acf6c3c3c6120acfbb27d /stream | |
parent | 0fb8cdfd14a01dac929fcf9a64df98f6a2ce7444 (diff) | |
download | mpv-df1af7047583d6b963301495490b12aad178f1e5.tar.bz2 mpv-df1af7047583d6b963301495490b12aad178f1e5.tar.xz |
Simplify extracting title number from ifo name
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29082 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_dvd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index 70a94303e6..55f4efa9df 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -1108,12 +1108,8 @@ 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(!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); |