mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
options: remove the player argument from --media-controls
It is now handled internally by the libmpv profile. Since `player` was the default option, the impact should be minimal, as it is uncommon to override the default option with the same value. yes/no args will function the same way as before this commit.
This commit is contained in:
@@ -517,8 +517,7 @@ static const m_option_t mp_opts[] = {
|
||||
{"idle", IDLE_PRIORITY_CLASS}),
|
||||
.flags = UPDATE_PRIORITY},
|
||||
#endif
|
||||
{"media-controls", OPT_CHOICE(media_controls,
|
||||
{"no", 0}, {"player", 1}, {"yes", 2})},
|
||||
{"media-controls", OPT_BOOL(media_controls)},
|
||||
{"config", OPT_BOOL(load_config), .flags = M_OPT_PRE_PARSE},
|
||||
{"config-dir", OPT_STRING(force_configdir),
|
||||
.flags = M_OPT_NOCFG | M_OPT_PRE_PARSE | M_OPT_FILE},
|
||||
@@ -1026,7 +1025,7 @@ static const struct MPOpts mp_default_opts = {
|
||||
.osd_bar_visible = true,
|
||||
.screenshot_template = "mpv-shot%n",
|
||||
.play_dir = 1,
|
||||
.media_controls = 1,
|
||||
.media_controls = true,
|
||||
.video_exts = (char *[]){
|
||||
"3g2", "3gp", "avi", "flv", "m2ts", "m4v", "mj2", "mkv", "mov", "mp4",
|
||||
"mpeg", "mpg", "ogv", "rmvb", "ts", "webm", "wmv", "y4m", NULL
|
||||
|
||||
@@ -337,7 +337,7 @@ typedef struct MPOpts {
|
||||
bool osd_bar_visible;
|
||||
|
||||
int w32_priority;
|
||||
int media_controls;
|
||||
bool media_controls;
|
||||
|
||||
struct bluray_opts *stream_bluray_opts;
|
||||
struct cdda_opts *stream_cdda_opts;
|
||||
|
||||
Reference in New Issue
Block a user