summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r--stream/stream_dvdnav.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index d858c51aca..56aaaa90af 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -562,10 +562,15 @@ static int open_s_internal(stream_t *stream)
{
struct priv *priv, *p;
priv = p = stream->priv;
- char *filename;
p->opts = mp_get_config_group(stream, stream->global, &dvd_conf);
+ char *filename = "/dev/dvd";
+
+#if defined(_WIN32)
+ filename = "D:";
+#endif
+
if (p->device && p->device[0])
filename = p->device;
else if (p->opts->device && p->opts->device[0])