[MPlayer-cvslog] r29082 - trunk/stream/stream_dvd.c
reimar
subversion at mplayerhq.hu
Sat Mar 28 16:53:33 CET 2009
Author: reimar
Date: Sat Mar 28 16:53:32 2009
New Revision: 29082
Log:
Simplify extracting title number from ifo name
Modified:
trunk/stream/stream_dvd.c
Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c Sat Mar 28 13:17:42 2009 (r29081)
+++ trunk/stream/stream_dvd.c Sat Mar 28 16:53:32 2009 (r29082)
@@ -1108,12 +1108,8 @@ static int ifo_stream_open (stream_t *st
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);
More information about the MPlayer-cvslog
mailing list