[vlc-devel] [PATCH] vout: Initialize screen saver inhibition from the vout thread
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Wed Jan 24 11:16:21 CET 2018
On Wed, Jan 24, 2018, at 11:14 AM, Steve Lhomme wrote:
> > +void vout_window_InitInhibition(vout_window_t *window)
> > +{
> > + window_t* w = (window_t*)window;
> > + /* Hook for screensaver inhibition */
> > + if (var_InheritBool(window, "disable-screensaver") &&
> > + (window->type == VOUT_WINDOW_TYPE_XID || window->type == VOUT_WINDOW_TYPE_HWND))
>
> IMO we can drop the test on the window type. If the inhibit plugin
> doesn't exist it won't be used.
> But that may be for another patch.
>
That makes sense to me! Will do once the issue is fixed.
--
Hugo Beauzée-Luyssen
hugo at beauzee.fr
More information about the vlc-devel
mailing list