Mercurial > mplayer.hg
comparison stream/stream_dvd.c @ 27164:4c4ce3ecf125
dvd_device must be handled exclusively by the option parser; it can't be changed at will in ifo_stream_open()
author | nicodvb |
---|---|
date | Fri, 04 Jul 2008 15:57:33 +0000 |
parents | 704a4fdb762a |
children | e3b2b66834c6 |
comparison
equal
deleted
inserted
replaced
27163:704a4fdb762a | 27164:4c4ce3ecf125 |
---|---|
1089 ext = strrchr (stream->url, '.'); | 1089 ext = strrchr (stream->url, '.'); |
1090 if (!ext || strcasecmp (ext + 1, "ifo")) | 1090 if (!ext || strcasecmp (ext + 1, "ifo")) |
1091 return STREAM_UNSUPPORTED; | 1091 return STREAM_UNSUPPORTED; |
1092 | 1092 |
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 if (!dvd_device) | |
1095 dvd_device = strdup(dirname (stream->url)); | |
1096 | 1094 |
1097 filename = strdup(basename(stream->url)); | 1095 filename = strdup(basename(stream->url)); |
1098 | 1096 |
1099 dvd_priv=calloc(1, sizeof(struct stream_priv_s)); | 1097 dvd_priv=calloc(1, sizeof(struct stream_priv_s)); |
1100 if(!strncasecmp(filename,"vts_",4)) | 1098 if(!strncasecmp(filename,"vts_",4)) |