in ifo_stream_open() propagate the device based on the dirname of stream->url; patch by Mathieu SCHROETER mathieu.schroeter gamesover ch

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27197 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2008-07-04 16:00:07 +00:00
parent 7043b6d0d1
commit 8742c266db
1 changed files with 1 additions and 0 deletions

View File

@ -1095,6 +1095,7 @@ ifo_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
filename = strdup(basename(stream->url));
dvd_priv=calloc(1, sizeof(struct stream_priv_s));
dvd_priv->device = strdup(dirname(stream->url));
if(!strncasecmp(filename,"vts_",4))
{
if(sscanf(filename+3, "_%02d_", &dvd_priv->title)!=1)