[vlc-commits] core: Load inhibition plugin for all window types

Marvin Scholz git at videolan.org
Tue Mar 5 09:15:23 CET 2019


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Mon Mar  4 21:43:42 2019 +0100| [133b2d017762e161abf588d34ddfb76510e267f0] | committer: Thomas Guillem

core: Load inhibition plugin for all window types

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=133b2d017762e161abf588d34ddfb76510e267f0
---

 src/video_output/window.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/video_output/window.c b/src/video_output/window.c
index c79e97967e..751da25690 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -75,9 +75,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj, const char *module,
     }
 
     /* Hook for screensaver inhibition */
-    if (var_InheritBool(obj, "disable-screensaver") &&
-        (window->type == VOUT_WINDOW_TYPE_XID || window->type == VOUT_WINDOW_TYPE_HWND
-      || window->type == VOUT_WINDOW_TYPE_WAYLAND))
+    if (var_InheritBool(obj, "disable-screensaver"))
         w->inhibit = vlc_inhibit_Create(VLC_OBJECT(window));
     else
         w->inhibit = NULL;



More information about the vlc-commits mailing list