summaryrefslogtreecommitdiffstats
path: root/stream/stream_cdda.c
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-02-20 04:32:50 +0100
committerDudemanguy <random342@airmail.cc>2023-02-21 17:15:17 +0000
commit91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (patch)
tree448b141d92c9ea7636954213b587aaf380fc21db /stream/stream_cdda.c
parentb9850a6e8c45f95563a703af7f21dfe1c1ee40b6 (diff)
downloadmpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.bz2
mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.xz
options: transition options from OPT_FLAG to OPT_BOOL
c78482045444c488bb7948305d583a55d17cd236 introduced a bool option type as a replacement for the flag type, but didn't actually transition and remove the flag type because it would have been too much mundane work.
Diffstat (limited to 'stream/stream_cdda.c')
-rw-r--r--stream/stream_cdda.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c
index b00bb22539..9a30d6ca23 100644
--- a/stream/stream_cdda.c
+++ b/stream/stream_cdda.c
@@ -67,10 +67,10 @@ typedef struct cdda_params {
int search_overlap;
int toc_bias;
int toc_offset;
- int skip;
+ bool skip;
char *device;
int span[2];
- int cdtext;
+ bool cdtext;
} cdda_priv;
#define OPT_BASE_STRUCT struct cdda_params
@@ -82,17 +82,17 @@ const struct m_sub_options stream_cdda_conf = {
{"overlap", OPT_INT(search_overlap), M_RANGE(0, 75)},
{"toc-bias", OPT_INT(toc_bias)},
{"toc-offset", OPT_INT(toc_offset)},
- {"skip", OPT_FLAG(skip)},
+ {"skip", OPT_BOOL(skip)},
{"span-a", OPT_INT(span[0])},
{"span-b", OPT_INT(span[1])},
- {"cdtext", OPT_FLAG(cdtext)},
+ {"cdtext", OPT_BOOL(cdtext)},
{"span", OPT_REMOVED("use span-a/span-b")},
{0}
},
.size = sizeof(struct cdda_params),
.defaults = &(const struct cdda_params){
.search_overlap = -1,
- .skip = 1,
+ .skip = true,
},
};