summaryrefslogtreecommitdiffstats
path: root/player/configfiles.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-08 21:46:48 +0200
committerwm4 <wm4@nowhere>2016-09-08 21:46:48 +0200
commit5e30e7a04125e3c503160a76bbfe9361bff561fd (patch)
tree6aa17c781f70382471e331e4e9754aaf45ebe64b /player/configfiles.c
parent35e8b6c1e68ae936ca0aeee4f30732cd13ef9932 (diff)
downloadmpv-5e30e7a04125e3c503160a76bbfe9361bff561fd.tar.bz2
mpv-5e30e7a04125e3c503160a76bbfe9361bff561fd.tar.xz
stream_dvd, stream_dvdnav: remove weird option parsing stuff
Same deal as with stream_bluray. Untested because I don't give a fuck about your shitty DVDs.
Diffstat (limited to 'player/configfiles.c')
-rw-r--r--player/configfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/configfiles.c b/player/configfiles.c
index ed53e5882c..3d056d15d3 100644
--- a/player/configfiles.c
+++ b/player/configfiles.c
@@ -180,8 +180,8 @@ static char *mp_get_playback_resume_config_filename(struct MPContext *mpctx,
realpath = mp_path_join(tmp, cwd, fname);
}
}
- if (bstr_startswith0(bfname, "dvd://") && opts->dvd_device)
- realpath = talloc_asprintf(tmp, "%s - %s", realpath, opts->dvd_device);
+ if (bstr_startswith0(bfname, "dvd://") && opts->dvd_opts->device)
+ realpath = talloc_asprintf(tmp, "%s - %s", realpath, opts->dvd_opts->device);
if ((bstr_startswith0(bfname, "br://") || bstr_startswith0(bfname, "bd://") ||
bstr_startswith0(bfname, "bluray://")) && opts->bluray_device)
realpath = talloc_asprintf(tmp, "%s - %s", realpath, opts->bluray_device);