From 7d9eab15f00e38a5b4c25d084a904e3a8439807b Mon Sep 17 00:00:00 2001 From: maniak1349 Date: Thu, 5 May 2016 08:56:21 +0300 Subject: 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 --- options/options.c | 2 ++ options/options.h | 1 + 2 files changed, 3 insertions(+) (limited to 'options') 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; -- cgit v1.2.3