[vlc-devel] [PATCH 01/24] vout: add vout_display_cfg_IsWindowed
Thomas Guillem
thomas at gllm.fr
Wed Oct 31 17:49:56 CET 2018
Will replace vout_display_IsWindowed.
---
include/vlc_vout_display.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 09f257790c..568233cddf 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -370,9 +370,13 @@ static inline vout_window_t *vout_display_NewWindow(vout_display_t *vd, unsigned
return (type == wnd->type) ? wnd : NULL;
}
+static inline bool vout_display_cfg_IsWindowed(const vout_display_cfg_t *cfg)
+{
+ return cfg->window->type != VOUT_WINDOW_TYPE_DUMMY;
+}
static inline bool vout_display_IsWindowed(vout_display_t *vd)
{
- return vd->cfg->window->type != VOUT_WINDOW_TYPE_DUMMY;
+ return vout_display_cfg_IsWindowed(vd->cfg);
}
/**
--
2.19.1
More information about the vlc-devel
mailing list