[vlc-commits] window: track active (not paused) state internally
Rémi Denis-Courmont
git at videolan.org
Sat Apr 13 18:23:15 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 30 15:12:31 2019 +0200| [e1911d98b26b5ee188c291dcda1ee3bc0ea10dd8] | committer: Rémi Denis-Courmont
window: track active (not paused) state internally
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e1911d98b26b5ee188c291dcda1ee3bc0ea10dd8
---
src/video_output/window.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/video_output/window.c b/src/video_output/window.c
index 78949433b6..80b1f6c6c7 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -41,6 +41,7 @@ typedef struct
vout_window_t wnd;
module_t *module;
vlc_inhibit_t *inhibit;
+ bool active;
bool fullscreen;
} window_t;
@@ -67,6 +68,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj, const char *module,
window->sys = NULL;
assert(owner != NULL);
window->owner = *owner;
+ w->active = false;
w->fullscreen = false;
w->module = vlc_module_load(window, "vout window", module, false,
@@ -125,6 +127,8 @@ void vout_window_SetInhibition(vout_window_t *window, bool enabled)
window_t *w = (window_t *)window;
unsigned flags = enabled ? VLC_INHIBIT_VIDEO : VLC_INHIBIT_NONE;
+ w->active = enabled;
+
if (w->inhibit != NULL)
vlc_inhibit_Set(w->inhibit, flags);
}
More information about the vlc-commits
mailing list