Mercurial > mplayer.hg
comparison stream/stream_dvd.c @ 27165:e3b2b66834c6
in ifo_stream_open() propagate the device based on the dirname of stream->url; patch by Mathieu SCHROETER mathieu.schroeter gamesover ch
author | nicodvb |
---|---|
date | Fri, 04 Jul 2008 16:00:07 +0000 |
parents | 4c4ce3ecf125 |
children | e1619590ef03 |
comparison
equal
deleted
inserted
replaced
27164:4c4ce3ecf125 | 27165:e3b2b66834c6 |
---|---|
1093 mp_msg(MSGT_DVD, MSGL_INFO, ".IFO detected. Redirecting to dvd://\n"); | 1093 mp_msg(MSGT_DVD, MSGL_INFO, ".IFO detected. Redirecting to dvd://\n"); |
1094 | 1094 |
1095 filename = strdup(basename(stream->url)); | 1095 filename = strdup(basename(stream->url)); |
1096 | 1096 |
1097 dvd_priv=calloc(1, sizeof(struct stream_priv_s)); | 1097 dvd_priv=calloc(1, sizeof(struct stream_priv_s)); |
1098 dvd_priv->device = strdup(dirname(stream->url)); | |
1098 if(!strncasecmp(filename,"vts_",4)) | 1099 if(!strncasecmp(filename,"vts_",4)) |
1099 { | 1100 { |
1100 if(sscanf(filename+3, "_%02d_", &dvd_priv->title)!=1) | 1101 if(sscanf(filename+3, "_%02d_", &dvd_priv->title)!=1) |
1101 dvd_priv->title=1; | 1102 dvd_priv->title=1; |
1102 }else | 1103 }else |