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 /video | |
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 'video')
-rw-r--r-- | video/out/vo.h | 1 | ||||
-rw-r--r-- | video/out/w32_common.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index 49a7546462..f6bc270afd 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -132,6 +132,7 @@ struct voctrl_get_equalizer_args { // VOCTRL_UPDATE_PLAYBACK_STATE struct voctrl_playback_state { + bool taskbar_progress; bool playing; bool paused; int percent_pos; 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; |