stream_cdda: move cdrom-device to cdda_params

There is zero reason for this to be an MPOpt. Because of how the
OPT_SUBSTRACT works, the option gets renamed to cdda-device instead, but
probably not a big deal since the old alias is still in place.
This commit is contained in:
Dudemanguy
2023-09-19 16:14:24 -05:00
parent b2edd4312d
commit 6ea9ec9931
5 changed files with 8 additions and 11 deletions

View File

@@ -547,7 +547,7 @@ static const m_option_t mp_opts[] = {
#if HAVE_CDDA
{"cdda", OPT_SUBSTRUCT(stream_cdda_opts, stream_cdda_conf)},
{"cdrom-device", OPT_STRING(cdrom_device), .flags = M_OPT_FILE},
{"cdrom-device", OPT_REPLACED("cdda-device")},
#endif
// demuxer.c - select audio/sub file/demuxer

View File

@@ -325,7 +325,6 @@ typedef struct MPOpts {
struct dvb_params *stream_dvb_opts;
struct stream_lavf_params *stream_lavf_opts;
char *cdrom_device;
char *bluray_device;
struct demux_rawaudio_opts *demux_rawaudio;