summaryrefslogtreecommitdiffstats
path: root/video/out/w32_common.c
diff options
context:
space:
mode:
authormaniak1349 <maniak1349@gmail.com>2016-05-05 08:56:21 +0300
committerwm4 <wm4@nowhere>2016-05-08 17:05:20 +0200
commit7d9eab15f00e38a5b4c25d084a904e3a8439807b (patch)
tree17779d34af02d8f726d3c040a3e9d63989094b26 /video/out/w32_common.c
parent2f8b4dd4808d796cff955354caf804df00e53ebb (diff)
downloadmpv-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 'video/out/w32_common.c')
-rw-r--r--video/out/w32_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index e858f037aa..28b7a7a14b 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -1435,7 +1435,7 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg)
if (!w32->taskbar_list3 || !w32->tbtnCreated)
return VO_TRUE;
- if (!pstate->playing) {
+ if (!pstate->playing || !pstate->taskbar_progress) {
ITaskbarList3_SetProgressState(w32->taskbar_list3, w32->window,
TBPF_NOPROGRESS);
return VO_TRUE;