summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2025-02-16 20:01:04 -0600
committerDudemanguy <random342@airmail.cc>2025-02-17 21:15:42 +0000
commit8275768bf7bd781308466042dc6914c8a2ce84ec (patch)
tree5be0840e21c415705f601e19caa0fcd5b7556f53
parent656f0f2dfea09e67d423b73b1d41dad8af377a4c (diff)
downloadmpv-8275768bf7bd781308466042dc6914c8a2ce84ec.tar.bz2
mpv-8275768bf7bd781308466042dc6914c8a2ce84ec.tar.xz
stream_bluray: use DEFAULT_OPTICAL_DRIVE
Unlike the other ones, stream_bluray had no default drive to choose as a fallback so make it use DEFAULT_OPTICAL_DRIVE.
-rw-r--r--stream/stream_bluray.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c
index edfc80b8e8..965be2943f 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -415,8 +415,10 @@ static int bluray_stream_open_internal(stream_t *s)
/* find the requested device */
if (b->cfg_device && b->cfg_device[0]) {
device = b->cfg_device;
- } else {
+ } else if (b->opts->bluray_device && b->opts->bluray_device[0]) {
device = b->opts->bluray_device;
+ } else {
+ device = DEFAULT_OPTICAL_DEVICE;
}
if (!device || !device[0]) {