[vlc-commits] vout: add vout_display_cfg_IsWindowed
Thomas Guillem
git at videolan.org
Tue Nov 27 15:49:00 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Oct 28 12:20:27 2018 +0100| [b3d545bb9094d9bd5d715ef70548356905a7bf15] | committer: Steve Lhomme
vout: add vout_display_cfg_IsWindowed
Will replace vout_display_IsWindowed.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b3d545bb9094d9bd5d715ef70548356905a7bf15
---
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 c6d1972ffb..7ce3ff1926 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -371,9 +371,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);
}
/**
More information about the vlc-commits
mailing list