diff options
author | maniak1349 <maniak1349@gmail.com> | 2016-05-05 08:56:21 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-08 17:05:20 +0200 |
commit | 7d9eab15f00e38a5b4c25d084a904e3a8439807b (patch) | |
tree | 17779d34af02d8f726d3c040a3e9d63989094b26 /options | |
parent | 2f8b4dd4808d796cff955354caf804df00e53ebb (diff) | |
download | mpv-7d9eab15f00e38a5b4c25d084a904e3a8439807b.tar.bz2 mpv-7d9eab15f00e38a5b4c25d084a904e3a8439807b.tar.xz |
win32: make taskbar progress indication optional
Add --taskbar-progress command line option and property which controls taskbar
progress indication rendering in Windows 7+. This option is on by default and
can be toggled during playback.
This option does not affect the creation process of ITaskbarList3. When the
option is turned off the progress bar is just hidden with TBPF_NOPROGRESS.
Closes #2535
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 2 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 43bc2dbece..92acb42c81 100644 --- a/options/options.c +++ b/options/options.c @@ -397,6 +397,7 @@ const m_option_t mp_opts[] = { OPT_FLAG("audio-fallback-to-null", ao_null_fallback, 0), OPT_CHOICE("force-window", force_vo, 0, ({"no", 0}, {"yes", 1}, {"immediate", 2})), + OPT_FLAG("taskbar-progress", vo.taskbar_progress, 0), OPT_FLAG("ontop", vo.ontop, M_OPT_FIXED), OPT_FLAG("border", vo.border, M_OPT_FIXED), OPT_FLAG("fit-border", vo.fit_border, M_OPT_FIXED), @@ -709,6 +710,7 @@ const struct MPOpts mp_default_opts = { .panscan = 0.0f, .keepaspect = 1, .keepaspect_window = 1, + .taskbar_progress = 1, .border = 1, .fit_border = 1, .WinID = -1, diff --git a/options/options.h b/options/options.h index 6f21c0c683..5dcc642222 100644 --- a/options/options.h +++ b/options/options.h @@ -9,6 +9,7 @@ typedef struct mp_vo_opts { struct m_obj_settings *video_driver_list, *vo_defs; + int taskbar_progress; int ontop; int fullscreen; int border; |