-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: use the same default optical drive for everything #15889
build: use the same default optical drive for everything #15889
Conversation
Download the artifacts for this pull request: |
Amusingly, this was not working correctly for at least a decade. For all OSes, the default drive is the same except for macOS. It had "/dev/diskN" as the default dvd drive. Back in the mplayer days, there was actually dynamic compile time generation (only for mac) that replaced the N with the actual number*. But this didn't actually work for all stream types. It seems like it never worked for stream_dvdnav and was only a stream_dvd (libdvdread) feature. And then later that stream got removed completely. So at least for macOS users, they had a fallback device of "/dev/diskN" for certain stream types and for a very long time. We can't really do better here, but we should at least pick a default string that has a chance of working. So /dev/disk1 it is then. With that, all of the devices become the same so we can combine it all and use the same default optical drive for both CDs and DVDs. BD will be added in the next commit. Also /dev/dvd is some antiquated thing that doesn't really exist anymore. Linux systems will likely still have /dev/cdrom which has a decent chance of being usable. /dev/dvd probably won't be there. *: f215e84
Unlike the other ones, stream_bluray had no default drive to choose as a fallback so make it use DEFAULT_OPTICAL_DRIVE.
a7240c8
to
b1ba230
Compare
Needs docs update, specifically the dvd part Line 3764 in bede446
|
Ugh, those docs aren't even right today. Who is compiling mpv on a non-Windows, non-darwin, non-linux, and non-BSD system? Edit: added a doc commit for that. |
Unless you were compiling on an obscure OS, the default drive location was never /dev/dvd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Selecting D:
on Windows and /dev/disk1
on macOS is kinda whatever. But it was like that anyway, so status quo is preserved.
A trip down mplayer commits.